Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001103/0.001103, allocations: 116.4 kB / 17.08 MB, free: 5.996 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.001128/0.001128, allocations: 193.3 kB / 18.01 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2372/0.2372, allocations: 43.52 MB / 314.8 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 67.89 kB / 442.5 MB, free: 5.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1164, allocations: 57.78 MB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01782/0.1343, allocations: 15.23 MB / 0.5034 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01328/0.1476, allocations: 5.07 MB / 0.5084 GB, free: 7.406 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003926/0.1516, allocations: 107.6 kB / 0.5085 GB, free: 7.301 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009116/0.1607, allocations: 4.178 MB / 0.5126 GB, free: 3.109 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007621/0.1685, allocations: 2.427 MB / 0.5149 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003111/0.1716, allocations: 1.088 MB / 0.516 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01153/0.1831, allocations: 6.868 MB / 0.5227 GB, free: 8.699 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008732/0.1919, allocations: 5.225 MB / 0.5278 GB, free: 3.41 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004951/0.1969, allocations: 2.325 MB / 0.5301 GB, free: 1.078 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2928/0.4897, allocations: 3.161 MB / 0.5332 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002866/0.4927, allocations: 0.5008 MB / 0.5336 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0047/0.4974, allocations: 1.38 MB / 0.535 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004665/0.5021, allocations: 2.866 MB / 0.5378 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007658/0.5097, allocations: 3.254 MB / 0.541 GB, free: 10.39 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0185/0.5283, allocations: 10.18 MB / 0.5509 GB, free: 8.961 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.5283, allocations: 0.8438 kB / 0.5509 GB, free: 8.961 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.5284, allocations: 0 / 0.5509 GB, free: 8.961 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005089/0.5289, allocations: 3 kB / 0.5509 GB, free: 8.961 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: 2030 * Number of variables: 2030 Notification: Performance of Generate backend data structure: time 0.02625/0.5551, allocations: 7.052 MB / 0.5578 GB, free: 5.605 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.5552, allocations: 14.14 kB / 0.5578 GB, free: 5.602 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02913/0.5843, allocations: 3.363 MB / 0.5611 GB, free: 4.52 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0135/0.5979, allocations: 4.659 MB / 0.5656 GB, free: 1.848 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003828/0.5983, allocations: 337.5 kB / 0.566 GB, free: 1.73 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002719/0.6011, allocations: 452.5 kB / 0.5664 GB, free: 1.613 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03159/0.6327, allocations: 13.58 MB / 0.5797 GB, free: 9.074 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002904/0.633, allocations: 76.14 kB / 0.5797 GB, free: 9.027 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001009/0.634, allocations: 213.9 kB / 0.5799 GB, free: 8.863 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005016/0.6391, allocations: 2.646 MB / 0.5825 GB, free: 6.25 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02755/0.6667, allocations: 11.83 MB / 0.5941 GB, free: 10.64 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08804/0.7547, allocations: 54.05 MB / 0.6469 GB, free: 3.805 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01607/0.7708, allocations: 5.775 MB / 0.6525 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005488/0.7764, allocations: 3.554 MB / 0.656 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009573/0.7774, allocations: 0.6813 MB / 0.6566 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.849e-05/0.7775, allocations: 63.94 kB / 0.6567 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=254): time 6.953e-06/0.7775, allocations: 4 kB / 0.6567 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of matching and sorting (n=324): time 0.1273/0.9048, allocations: 37.24 MB / 0.6931 GB, free: 4.199 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002106/0.905, allocations: 272.6 kB / 0.6933 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0115/0.9166, allocations: 5.32 MB / 0.6985 GB, free: 14.57 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001243/0.9179, allocations: 73.45 kB / 0.6986 GB, free: 14.5 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00383/0.9217, allocations: 4.003 MB / 0.7025 GB, free: 10.49 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002749/0.9245, allocations: 1.203 MB / 0.7037 GB, free: 9.301 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003492/0.928, allocations: 1.634 MB / 0.7053 GB, free: 7.656 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.9281, allocations: 301.1 kB / 0.7056 GB, free: 7.359 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006592/0.9347, allocations: 3.697 MB / 0.7092 GB, free: 3.652 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01154/0.9463, allocations: 7.974 MB / 0.7169 GB, free: 9.648 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01913/0.9655, allocations: 12.5 MB / 0.7292 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000282/0.9659, allocations: 40 kB / 0.7292 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.03558/1.001, allocations: 13.97 MB / 0.7428 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.000222/1.002, allocations: 69 kB / 0.7429 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002794/1.002, allocations: 144 kB / 0.743 GB, free: 13.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008086/1.01, allocations: 2.762 MB / 0.7457 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007509/1.018, allocations: 1.836 MB / 0.7475 GB, free: 8.992 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3746/1.392, allocations: 17.79 MB / 0.7649 GB, free: 198.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009151/1.402, allocations: 483 kB / 0.7654 GB, free: 198.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002308/1.404, allocations: 465.6 kB / 0.7658 GB, free: 198.1 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 672 * Number of states: 0 () * Number of discrete variables: 42 (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 (973): * Single equations (assignments): 968 * 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%), (4,23,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009452/1.413, allocations: 2.826 MB / 0.7686 GB, free: 197.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001774/1.415, allocations: 0.4895 MB / 0.769 GB, free: 197.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01787/1.433, allocations: 8.174 MB / 0.777 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.257e-05/1.433, allocations: 34.25 kB / 0.7771 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.819e-05/1.433, allocations: 10.84 kB / 0.7771 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.397e-05/1.433, allocations: 14.2 kB / 0.7771 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03766/1.471, allocations: 17.16 MB / 0.7938 GB, free: 187.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.891e-05/1.471, allocations: 6.75 kB / 0.7939 GB, free: 187.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003141/1.474, allocations: 0.5153 MB / 0.7944 GB, free: 187.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006298/1.481, allocations: 2.487 MB / 0.7968 GB, free: 187.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008629/1.481, allocations: 64.83 kB / 0.7968 GB, free: 187.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01837/1.5, allocations: 15.93 MB / 0.8124 GB, free: 175 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.686e-06/1.5, allocations: 11.94 kB / 0.8124 GB, free: 175 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02074/1.521, allocations: 12.79 MB / 0.8249 GB, free: 162.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003916/1.525, allocations: 1.105 MB / 0.826 GB, free: 161.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001874/1.527, allocations: 60.62 kB / 0.826 GB, free: 161.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003944/1.53, allocations: 237.6 kB / 0.8263 GB, free: 161 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007177/1.531, allocations: 205.5 kB / 0.8265 GB, free: 160.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002616/1.531, allocations: 87.98 kB / 0.8266 GB, free: 160.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006588/1.538, allocations: 3.368 MB / 0.8298 GB, free: 157.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 6.41e-07/1.538, allocations: 0 / 0.8298 GB, free: 157.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01077/1.549, allocations: 1.581 MB / 0.8314 GB, free: 155.8 MB / 0.5919 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 (263): * Single equations (assignments): 258 * 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.001092/1.55, allocations: 212.5 kB / 0.8316 GB, free: 155.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01488/1.565, allocations: 9.145 MB / 0.8405 GB, free: 146.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.629e-05/1.565, allocations: 0 / 0.8405 GB, free: 146.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005284/1.57, allocations: 3.584 MB / 0.844 GB, free: 142.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007869/1.578, allocations: 0.6782 MB / 0.8447 GB, free: 142.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03616/1.614, allocations: 15.52 MB / 0.8598 GB, free: 126.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006883/1.621, allocations: 4.386 MB / 0.8641 GB, free: 122.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003125/1.625, allocations: 411.3 kB / 0.8645 GB, free: 121.8 MB / 0.5919 GB Notification: Performance of SimCode: time 1.132e-06/1.625, allocations: 0 / 0.8645 GB, free: 121.8 MB / 0.5919 GB Notification: Performance of Templates: time 0.5085/2.133, allocations: 139.7 MB / 1.001 GB, free: 190.6 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches