Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.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.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 118.4 kB / 17.78 MB, free: 5.262 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.001132/0.001132, allocations: 183.8 kB / 18.71 MB, free: 4.34 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.345/1.345, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2381/0.2381, allocations: 44.18 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 63.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4505/0.4518, allocations: 60.82 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01558/0.4674, allocations: 14.79 MB / 0.5334 GB, free: 8.891 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01196/0.4794, allocations: 5.007 MB / 0.5382 GB, free: 4.926 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003363/0.4828, allocations: 99.41 kB / 0.5383 GB, free: 4.906 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007904/0.4907, allocations: 4.158 MB / 0.5424 GB, free: 2.117 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007273/0.4981, allocations: 2.439 MB / 0.5448 GB, free: 348 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00311/0.5012, allocations: 1.074 MB / 0.5458 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0125/0.5137, allocations: 7.067 MB / 0.5527 GB, free: 9.34 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0126/0.5264, allocations: 5.155 MB / 0.5578 GB, free: 4.121 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006683/0.5331, allocations: 2.27 MB / 0.56 GB, free: 1.844 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008086/0.5413, allocations: 3.076 MB / 0.563 GB, free: 14.76 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002235/0.5435, allocations: 500 kB / 0.5635 GB, free: 14.27 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004238/0.5478, allocations: 1.381 MB / 0.5648 GB, free: 12.89 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00415/0.552, allocations: 2.806 MB / 0.5675 GB, free: 10.07 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006816/0.5588, allocations: 3.177 MB / 0.5707 GB, free: 6.879 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01574/0.5746, allocations: 9.926 MB / 0.5803 GB, free: 12.92 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.019e-05/0.5746, allocations: 0 / 0.5803 GB, free: 12.92 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.518e-06/0.5747, allocations: 0 / 0.5803 GB, free: 12.92 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004612/0.5751, allocations: 7.938 kB / 0.5804 GB, free: 12.91 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.0236/0.5987, allocations: 6.906 MB / 0.5871 GB, free: 5.926 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.5988, allocations: 12.03 kB / 0.5871 GB, free: 5.914 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02733/0.6262, allocations: 3.343 MB / 0.5904 GB, free: 2.559 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01163/0.6378, allocations: 4.52 MB / 0.5948 GB, free: 13.95 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003731/0.6382, allocations: 328.8 kB / 0.5951 GB, free: 13.63 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001956/0.6402, allocations: 459.5 kB / 0.5955 GB, free: 13.18 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03072/0.6709, allocations: 13.27 MB / 0.6085 GB, free: 15.04 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000512/0.6715, allocations: 71.31 kB / 0.6086 GB, free: 14.97 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00235/0.6739, allocations: 207.8 kB / 0.6088 GB, free: 14.77 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005272/0.6792, allocations: 2.582 MB / 0.6113 GB, free: 12.18 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02691/0.7061, allocations: 11.55 MB / 0.6226 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07726/0.7834, allocations: 53.17 MB / 0.6745 GB, free: 9.914 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01381/0.7973, allocations: 5.67 MB / 0.68 GB, free: 4.098 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004588/0.8019, allocations: 3.506 MB / 0.6835 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008563/0.8028, allocations: 0.6799 MB / 0.6841 GB, free: 15.79 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.695e-05/0.8029, allocations: 68.48 kB / 0.6842 GB, free: 15.71 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 5.961e-06/0.8029, allocations: 4 kB / 0.6842 GB, free: 15.71 MB / 0.545 GB Notification: Performance of matching and sorting (n=315): time 0.4699/1.273, allocations: 36.55 MB / 0.7199 GB, free: 167.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.414e-05/1.273, allocations: 267 kB / 0.7201 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008113/1.281, allocations: 5.22 MB / 0.7252 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008029/1.282, allocations: 72.86 kB / 0.7253 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002217/1.284, allocations: 3.916 MB / 0.7291 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001347/1.285, allocations: 1.171 MB / 0.7303 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002238/1.288, allocations: 1.595 MB / 0.7318 GB, free: 161.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.065e-05/1.288, allocations: 311.5 kB / 0.7321 GB, free: 160.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005815/1.294, allocations: 3.628 MB / 0.7357 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00734/1.301, allocations: 7.84 MB / 0.7433 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0117/1.313, allocations: 12.27 MB / 0.7553 GB, free: 143.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.425e-05/1.313, allocations: 45.33 kB / 0.7553 GB, free: 143.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.02205/1.335, allocations: 13.76 MB / 0.7688 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002032/1.335, allocations: 68 kB / 0.7689 GB, free: 131.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003212/1.335, allocations: 144 kB / 0.769 GB, free: 131.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006121/1.342, allocations: 2.758 MB / 0.7717 GB, free: 128.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005563/1.347, allocations: 1.782 MB / 0.7734 GB, free: 127.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01842/1.366, allocations: 17.8 MB / 0.7908 GB, free: 109 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00766/1.373, allocations: 472.1 kB / 0.7913 GB, free: 108.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001714/1.375, allocations: 455.9 kB / 0.7917 GB, free: 108.1 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (951): * Single equations (assignments): 946 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006283/1.381, allocations: 2.778 MB / 0.7944 GB, free: 105.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001925/1.383, allocations: 481.8 kB / 0.7949 GB, free: 104.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01436/1.398, allocations: 8.044 MB / 0.8027 GB, free: 96.76 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-05/1.398, allocations: 32.89 kB / 0.8028 GB, free: 96.73 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.939e-05/1.398, allocations: 12 kB / 0.8028 GB, free: 96.72 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.737e-05/1.398, allocations: 21 kB / 0.8028 GB, free: 96.7 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03253/1.43, allocations: 16.89 MB / 0.8193 GB, free: 79.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.047e-05/1.431, allocations: 11.94 kB / 0.8193 GB, free: 79.73 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002441/1.433, allocations: 0.496 MB / 0.8198 GB, free: 79.23 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005968/1.439, allocations: 2.494 MB / 0.8222 GB, free: 76.73 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004964/1.439, allocations: 60 kB / 0.8223 GB, free: 76.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01683/1.456, allocations: 15.95 MB / 0.8378 GB, free: 60.45 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.373e-06/1.456, allocations: 7.984 kB / 0.8379 GB, free: 60.44 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01776/1.474, allocations: 12.61 MB / 0.8502 GB, free: 47.64 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002525/1.477, allocations: 0.5301 MB / 0.8507 GB, free: 47.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002607/1.479, allocations: 67.92 kB / 0.8507 GB, free: 47.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004353/1.484, allocations: 224.7 kB / 0.851 GB, free: 46.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000891/1.485, allocations: 201.6 kB / 0.8512 GB, free: 46.61 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004013/1.485, allocations: 84 kB / 0.8512 GB, free: 46.52 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006214/1.491, allocations: 3.308 MB / 0.8545 GB, free: 43.23 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.8e-07/1.491, allocations: 0 / 0.8545 GB, free: 43.23 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008212/1.5, allocations: 1.556 MB / 0.856 GB, free: 41.68 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (253): * Single equations (assignments): 248 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,21,100.0%), (3,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007767/1.5, allocations: 213.1 kB / 0.8562 GB, free: 41.47 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01402/1.514, allocations: 8.916 MB / 0.8649 GB, free: 32.55 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.419e-05/1.514, allocations: 4.062 kB / 0.8649 GB, free: 32.55 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005543/1.52, allocations: 3.564 MB / 0.8684 GB, free: 28.95 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006624/1.527, allocations: 0.6768 MB / 0.869 GB, free: 28.29 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02651/1.553, allocations: 14.65 MB / 0.8834 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009207/1.562, allocations: 4.331 MB / 0.8876 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.007551/1.57, allocations: 2.453 MB / 0.89 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002068/1.572, allocations: 351.3 kB / 0.8903 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of SimCode: time 1.062e-06/1.572, allocations: 0 / 0.8903 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of Templates: time 0.4618/2.034, allocations: 65.48 MB / 0.9543 GB, free: 196.3 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches