Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute") translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 108.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 183.1 kB / 19.38 MB, free: 3.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.258/1.258, allocations: 222.9 MB / 243.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1895/0.1895, allocations: 44.18 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 63.89 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.333, allocations: 60.82 MB / 0.5196 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01809/0.3511, allocations: 12.32 MB / 0.5316 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009865/0.361, allocations: 3.927 MB / 0.5354 GB, free: 8.051 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002236/0.3633, allocations: 60.78 kB / 0.5355 GB, free: 8.043 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004247/0.3676, allocations: 1.318 MB / 0.5368 GB, free: 7.137 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006734/0.3744, allocations: 1.745 MB / 0.5385 GB, free: 5.953 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002109/0.3766, allocations: 494.5 kB / 0.539 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007698/0.3843, allocations: 3.596 MB / 0.5425 GB, free: 3.715 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004537/0.3889, allocations: 2.018 MB / 0.5444 GB, free: 2.449 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003181/0.3921, allocations: 1.197 MB / 0.5456 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003598/0.3957, allocations: 1.721 MB / 0.5473 GB, free: 15.72 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001129/0.3969, allocations: 236 kB / 0.5475 GB, free: 15.49 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002841/0.3998, allocations: 0.9555 MB / 0.5484 GB, free: 14.53 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002354/0.4022, allocations: 1.593 MB / 0.55 GB, free: 12.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003328/0.4055, allocations: 1.898 MB / 0.5519 GB, free: 11.02 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008969/0.4145, allocations: 6.239 MB / 0.558 GB, free: 4.762 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.4146, allocations: 0 / 0.558 GB, free: 4.762 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4146, allocations: 3.938 kB / 0.558 GB, free: 4.758 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002342/0.4148, allocations: 0 / 0.558 GB, free: 4.758 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.008869/0.4237, allocations: 4.159 MB / 0.562 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.4237, allocations: 8.031 kB / 0.562 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01077/0.4345, allocations: 3.068 MB / 0.565 GB, free: 13.45 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004226/0.4388, allocations: 1.908 MB / 0.5669 GB, free: 11.49 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001946/0.439, allocations: 189 kB / 0.5671 GB, free: 11.3 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001082/0.4401, allocations: 251.9 kB / 0.5673 GB, free: 11.05 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01813/0.4582, allocations: 10.48 MB / 0.5775 GB, free: 140 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001414/0.4584, allocations: 27.72 kB / 0.5776 GB, free: 112 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009822/0.4594, allocations: 115.9 kB / 0.5777 GB, free: 15.99 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004481/0.4639, allocations: 2.561 MB / 0.5802 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01972/0.4837, allocations: 9.919 MB / 0.5899 GB, free: 3.504 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05167/0.5354, allocations: 34.26 MB / 0.6233 GB, free: 416 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009659/0.5451, allocations: 5.191 MB / 0.6284 GB, free: 10.98 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003109/0.5483, allocations: 2.291 MB / 0.6306 GB, free: 8.691 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001696/0.55, allocations: 1.876 MB / 0.6325 GB, free: 6.484 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.604e-05/0.5501, allocations: 56.55 kB / 0.6325 GB, free: 6.418 MB / 494.1 MB Notification: Performance of pre-optimization done (n=229): time 5.901e-06/0.5501, allocations: 0 / 0.6325 GB, free: 6.418 MB / 494.1 MB Notification: Performance of matching and sorting (n=235): time 0.03258/0.5827, allocations: 13.99 MB / 0.6462 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.36e-05/0.5827, allocations: 85.28 kB / 0.6463 GB, free: 8.277 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003582/0.5863, allocations: 2.631 MB / 0.6488 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002596/0.5866, allocations: 57.69 kB / 0.6489 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001609/0.5882, allocations: 2.635 MB / 0.6515 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008496/0.5891, allocations: 0.8479 MB / 0.6523 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001446/0.5906, allocations: 1.04 MB / 0.6533 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.873e-05/0.5906, allocations: 301.1 kB / 0.6536 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003031/0.5937, allocations: 2.204 MB / 0.6557 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005007/0.5987, allocations: 5.075 MB / 0.6607 GB, free: 7.988 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00905/0.6078, allocations: 7.973 MB / 0.6685 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.139e-05/0.6079, allocations: 32 kB / 0.6685 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01424/0.6222, allocations: 7.88 MB / 0.6762 GB, free: 6.691 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001131/0.6223, allocations: 48 kB / 0.6763 GB, free: 6.645 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001515/0.6225, allocations: 100 kB / 0.6764 GB, free: 6.547 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002302/0.6248, allocations: 0.7927 MB / 0.6771 GB, free: 5.75 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003935/0.6287, allocations: 1.189 MB / 0.6783 GB, free: 4.559 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005741/0.6345, allocations: 4.523 MB / 0.6827 GB, free: 15.89 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003538/0.6381, allocations: 291.7 kB / 0.683 GB, free: 15.61 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008324/0.6389, allocations: 300 kB / 0.6833 GB, free: 15.32 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (635): * Single equations (assignments): 628 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003762/0.6427, allocations: 2.016 MB / 0.6852 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005852/0.6433, allocations: 264.7 kB / 0.6855 GB, free: 13.03 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0081/0.6514, allocations: 4.729 MB / 0.6901 GB, free: 8.27 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.584e-05/0.6515, allocations: 43.98 kB / 0.6901 GB, free: 8.227 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.339e-05/0.6515, allocations: 7.938 kB / 0.6902 GB, free: 8.219 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.103e-05/0.6515, allocations: 11.97 kB / 0.6902 GB, free: 8.207 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.018/0.6696, allocations: 10.49 MB / 0.7004 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-05/0.6696, allocations: 8 kB / 0.7004 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001581/0.6712, allocations: 363.4 kB / 0.7008 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001992/0.6732, allocations: 0.6523 MB / 0.7014 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002368/0.6735, allocations: 51.97 kB / 0.7015 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004725/0.6782, allocations: 3.906 MB / 0.7053 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.6782, allocations: 11.94 kB / 0.7053 GB, free: 8.418 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009977/0.6882, allocations: 7.132 MB / 0.7122 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007442/0.689, allocations: 309.8 kB / 0.7125 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000476/0.6895, allocations: 47.92 kB / 0.7126 GB, free: 0.7969 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00126/0.6907, allocations: 139.8 kB / 0.7127 GB, free: 0.6602 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003149/0.6911, allocations: 140.9 kB / 0.7129 GB, free: 0.5195 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001505/0.6912, allocations: 64 kB / 0.7129 GB, free: 468 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002505/0.6937, allocations: 1.619 MB / 0.7145 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6938, allocations: 0 / 0.7145 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003604/0.6974, allocations: 0.9336 MB / 0.7154 GB, free: 13.89 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 171 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004485/0.6978, allocations: 174.8 kB / 0.7156 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007344/0.7052, allocations: 5.392 MB / 0.7208 GB, free: 8.332 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/0.7052, allocations: 384 / 0.7208 GB, free: 8.332 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002522/0.7077, allocations: 2.027 MB / 0.7228 GB, free: 6.289 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0019/0.7097, allocations: 356.3 kB / 0.7232 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2859/0.9956, allocations: 9.762 MB / 0.7327 GB, free: 185.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004868/1.001, allocations: 3.17 MB / 0.7358 GB, free: 184.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/1.002, allocations: 250.4 kB / 0.736 GB, free: 184.3 MB / 0.5762 GB Notification: Performance of SimCode: time 8.61e-07/1.002, allocations: 0 / 0.736 GB, free: 184.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.08004/1.082, allocations: 70.76 MB / 0.8051 GB, free: 127.5 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches