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.00107/0.00107, allocations: 106.4 kB / 17.77 MB, free: 5.273 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.001152/0.001152, allocations: 187.9 kB / 18.71 MB, free: 4.348 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.335/1.335, allocations: 222.9 MB / 242.4 MB, free: 15.11 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.2016/0.2016, allocations: 44.18 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001307, allocations: 67.89 kB / 470.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4032/0.4045, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01626/0.4208, allocations: 14.79 MB / 0.5333 GB, free: 8.883 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01792/0.4388, allocations: 5.002 MB / 0.5382 GB, free: 4.922 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004699/0.4435, allocations: 101.2 kB / 0.5383 GB, free: 4.902 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008848/0.4525, allocations: 4.168 MB / 0.5424 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009429/0.462, allocations: 2.358 MB / 0.5447 GB, free: 392 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003627/0.4656, allocations: 1.078 MB / 0.5458 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01293/0.4786, allocations: 7.06 MB / 0.5527 GB, free: 9.414 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008335/0.4869, allocations: 5.159 MB / 0.5577 GB, free: 4.191 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005252/0.4922, allocations: 2.266 MB / 0.5599 GB, free: 1.918 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006966/0.4992, allocations: 3.076 MB / 0.5629 GB, free: 14.83 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002805/0.5021, allocations: 0.496 MB / 0.5634 GB, free: 14.34 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004868/0.5069, allocations: 1.381 MB / 0.5647 GB, free: 12.95 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004073/0.511, allocations: 2.798 MB / 0.5675 GB, free: 10.15 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007555/0.5186, allocations: 3.177 MB / 0.5706 GB, free: 6.953 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01196/0.5306, allocations: 9.937 MB / 0.5803 GB, free: 12.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.5306, allocations: 0 / 0.5803 GB, free: 12.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5307, allocations: 0 / 0.5803 GB, free: 12.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002868/0.5309, allocations: 0 / 0.5803 GB, free: 12.98 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.01714/0.5481, allocations: 6.91 MB / 0.587 GB, free: 5.992 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/0.5482, allocations: 12.03 kB / 0.587 GB, free: 5.98 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02647/0.5746, allocations: 3.343 MB / 0.5903 GB, free: 2.625 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01252/0.5872, allocations: 4.513 MB / 0.5947 GB, free: 14.02 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003493/0.5876, allocations: 328.8 kB / 0.595 GB, free: 13.7 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002065/0.5897, allocations: 459.5 kB / 0.5955 GB, free: 13.25 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02547/0.6152, allocations: 13.27 MB / 0.6084 GB, free: 15.11 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002255/0.6155, allocations: 75.34 kB / 0.6085 GB, free: 15.03 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006244/0.6161, allocations: 211.8 kB / 0.6087 GB, free: 14.82 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004738/0.6208, allocations: 2.578 MB / 0.6112 GB, free: 12.24 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02432/0.6452, allocations: 11.55 MB / 0.6225 GB, free: 0.6875 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08062/0.7258, allocations: 53.18 MB / 0.6744 GB, free: 9.973 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01499/0.7409, allocations: 5.659 MB / 0.6799 GB, free: 4.168 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005477/0.7464, allocations: 3.499 MB / 0.6834 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001059/0.7475, allocations: 0.6838 MB / 0.684 GB, free: 15.87 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.839e-05/0.7476, allocations: 64.5 kB / 0.6841 GB, free: 15.79 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 7.323e-06/0.7476, allocations: 0 / 0.6841 GB, free: 15.79 MB / 0.545 GB Notification: Performance of matching and sorting (n=315): time 0.4017/1.149, allocations: 36.56 MB / 0.7198 GB, free: 167.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/1.15, allocations: 271.5 kB / 0.7201 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007889/1.157, allocations: 5.218 MB / 0.7252 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008099/1.158, allocations: 73.33 kB / 0.7252 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00221/1.16, allocations: 3.912 MB / 0.729 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001311/1.162, allocations: 1.172 MB / 0.7302 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002288/1.164, allocations: 1.603 MB / 0.7318 GB, free: 161.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.427e-05/1.164, allocations: 305.8 kB / 0.732 GB, free: 160.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005026/1.169, allocations: 3.633 MB / 0.7356 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005948/1.175, allocations: 7.842 MB / 0.7432 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0112/1.186, allocations: 12.27 MB / 0.7552 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001253/1.187, allocations: 39.06 kB / 0.7553 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.02219/1.209, allocations: 13.76 MB / 0.7687 GB, free: 132 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001539/1.209, allocations: 68 kB / 0.7688 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000332/1.209, allocations: 149.7 kB / 0.7689 GB, free: 131.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006442/1.216, allocations: 2.758 MB / 0.7716 GB, free: 129 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006603/1.222, allocations: 1.786 MB / 0.7733 GB, free: 127.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02063/1.243, allocations: 17.8 MB / 0.7907 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008035/1.251, allocations: 483.1 kB / 0.7912 GB, free: 108.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00194/1.253, allocations: 459.7 kB / 0.7916 GB, free: 108.2 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.007047/1.26, allocations: 2.768 MB / 0.7943 GB, free: 105.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002355/1.263, allocations: 481.8 kB / 0.7948 GB, free: 105 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01532/1.278, allocations: 8.044 MB / 0.8026 GB, free: 96.88 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-05/1.278, allocations: 41.11 kB / 0.8027 GB, free: 96.84 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.462e-05/1.278, allocations: 10.44 kB / 0.8027 GB, free: 96.83 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.143e-05/1.278, allocations: 11.95 kB / 0.8027 GB, free: 96.82 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03419/1.312, allocations: 16.89 MB / 0.8192 GB, free: 79.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.418e-05/1.312, allocations: 11.94 kB / 0.8192 GB, free: 79.84 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0025/1.315, allocations: 0.4953 MB / 0.8197 GB, free: 79.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005858/1.321, allocations: 2.487 MB / 0.8221 GB, free: 76.85 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005613/1.321, allocations: 63.92 kB / 0.8222 GB, free: 76.79 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0169/1.338, allocations: 15.96 MB / 0.8378 GB, free: 60.56 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.906e-06/1.338, allocations: 11.94 kB / 0.8378 GB, free: 60.55 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01937/1.358, allocations: 12.6 MB / 0.8501 GB, free: 47.75 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002124/1.36, allocations: 0.5338 MB / 0.8506 GB, free: 47.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001778/1.362, allocations: 63.91 kB / 0.8507 GB, free: 47.14 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00381/1.365, allocations: 231.7 kB / 0.8509 GB, free: 46.91 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008887/1.366, allocations: 205.6 kB / 0.8511 GB, free: 46.71 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004213/1.367, allocations: 83.98 kB / 0.8512 GB, free: 46.62 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006161/1.373, allocations: 3.301 MB / 0.8544 GB, free: 43.34 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.2e-07/1.373, allocations: 0 / 0.8544 GB, free: 43.34 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008759/1.382, allocations: 1.552 MB / 0.8559 GB, free: 41.79 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.0009754/1.383, allocations: 221.2 kB / 0.8561 GB, free: 41.57 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01303/1.396, allocations: 8.907 MB / 0.8648 GB, free: 32.66 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/1.396, allocations: 0 / 0.8648 GB, free: 32.66 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005495/1.401, allocations: 3.574 MB / 0.8683 GB, free: 29.06 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007865/1.409, allocations: 0.6756 MB / 0.869 GB, free: 28.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02973/1.439, allocations: 14.65 MB / 0.8833 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0078/1.447, allocations: 4.327 MB / 0.8875 GB, free: 9.281 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005983/1.453, allocations: 2.46 MB / 0.8899 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001355/1.454, allocations: 355.3 kB / 0.8902 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of SimCode: time 1.522e-06/1.454, allocations: 0 / 0.8902 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of Templates: time 0.4542/1.909, allocations: 65.88 MB / 0.9546 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