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.001954/0.001954, allocations: 112.6 kB / 17.08 MB, free: 6.016 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.001925/0.001925, allocations: 198.3 kB / 18.01 MB, free: 5.094 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.454/1.454, 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.2101/0.2101, allocations: 43.52 MB / 314.8 MB, free: 468 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.00144/0.00144, allocations: 63.91 kB / 442.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1125, allocations: 57.79 MB / 0.4886 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01582/0.1284, allocations: 15.23 MB / 0.5034 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0107/0.1392, allocations: 5.074 MB / 0.5084 GB, free: 7.402 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002974/0.1422, allocations: 99.69 kB / 0.5085 GB, free: 7.305 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007608/0.1498, allocations: 4.178 MB / 0.5126 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006542/0.1564, allocations: 2.423 MB / 0.5149 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002544/0.159, allocations: 1.084 MB / 0.516 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009096/0.1681, allocations: 6.872 MB / 0.5227 GB, free: 8.707 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006358/0.1745, allocations: 5.221 MB / 0.5278 GB, free: 3.422 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004145/0.1787, allocations: 2.325 MB / 0.5301 GB, free: 1.09 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2782/0.4569, allocations: 3.155 MB / 0.5331 GB, free: 11.37 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002337/0.4593, allocations: 0.5033 MB / 0.5336 GB, free: 11.37 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00441/0.4637, allocations: 1.385 MB / 0.535 GB, free: 11.37 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004802/0.4685, allocations: 2.865 MB / 0.5378 GB, free: 11.37 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007947/0.4765, allocations: 3.252 MB / 0.541 GB, free: 10.36 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01894/0.4955, allocations: 10.18 MB / 0.5509 GB, free: 8.922 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.4955, allocations: 1.188 kB / 0.5509 GB, free: 8.922 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4955, allocations: 0 / 0.5509 GB, free: 8.922 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004634/0.496, allocations: 0 / 0.5509 GB, free: 8.922 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.02649/0.5225, allocations: 7.053 MB / 0.5578 GB, free: 5.531 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.5226, allocations: 14.08 kB / 0.5578 GB, free: 5.527 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02802/0.5506, allocations: 3.366 MB / 0.5611 GB, free: 4.496 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01274/0.5634, allocations: 4.655 MB / 0.5656 GB, free: 1.816 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002973/0.5637, allocations: 341.3 kB / 0.566 GB, free: 1.699 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002596/0.5663, allocations: 463.8 kB / 0.5664 GB, free: 1.578 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03042/0.5968, allocations: 13.57 MB / 0.5797 GB, free: 9.07 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000285/0.5971, allocations: 67.25 kB / 0.5797 GB, free: 9.027 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001188/0.5983, allocations: 211 kB / 0.5799 GB, free: 8.867 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004977/0.6033, allocations: 2.658 MB / 0.5825 GB, free: 6.242 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02698/0.6303, allocations: 11.82 MB / 0.5941 GB, free: 10.64 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09105/0.7214, allocations: 54.05 MB / 0.6469 GB, free: 3.801 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01661/0.7381, allocations: 5.786 MB / 0.6525 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005706/0.7439, allocations: 3.549 MB / 0.656 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001048/0.7449, allocations: 0.6822 MB / 0.6566 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.428e-05/0.745, allocations: 60.12 kB / 0.6567 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=254): time 6.552e-06/0.745, allocations: 4 kB / 0.6567 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=324): time 0.1195/0.8645, allocations: 37.24 MB / 0.6931 GB, free: 4.191 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001705/0.8647, allocations: 261.4 kB / 0.6933 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01275/0.8775, allocations: 5.329 MB / 0.6985 GB, free: 14.56 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001205/0.8787, allocations: 73.7 kB / 0.6986 GB, free: 14.48 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004573/0.8833, allocations: 3.994 MB / 0.7025 GB, free: 10.49 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002629/0.886, allocations: 1.209 MB / 0.7037 GB, free: 9.293 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007074/0.8931, allocations: 1.633 MB / 0.7053 GB, free: 7.648 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.8933, allocations: 301.1 kB / 0.7055 GB, free: 7.352 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008137/0.9014, allocations: 3.697 MB / 0.7092 GB, free: 3.645 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0121/0.9136, allocations: 7.972 MB / 0.7169 GB, free: 9.645 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01964/0.9333, allocations: 12.5 MB / 0.7291 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001855/0.9335, allocations: 44 kB / 0.7292 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.03448/0.968, allocations: 13.96 MB / 0.7428 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002217/0.9683, allocations: 68.94 kB / 0.7429 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002947/0.9686, allocations: 152 kB / 0.743 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008011/0.9766, allocations: 2.765 MB / 0.7457 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007349/0.984, allocations: 1.833 MB / 0.7475 GB, free: 9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3459/1.33, allocations: 17.79 MB / 0.7649 GB, free: 198.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007769/1.338, allocations: 483.1 kB / 0.7654 GB, free: 198.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001766/1.34, allocations: 466.5 kB / 0.7658 GB, free: 198.7 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.007891/1.347, allocations: 2.828 MB / 0.7686 GB, free: 197.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00163/1.349, allocations: 0.4885 MB / 0.7691 GB, free: 197.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01578/1.365, allocations: 8.17 MB / 0.777 GB, free: 194.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.384e-05/1.365, allocations: 38.5 kB / 0.7771 GB, free: 194.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.668e-05/1.365, allocations: 7.688 kB / 0.7771 GB, free: 194.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.324e-05/1.365, allocations: 21.77 kB / 0.7771 GB, free: 194.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03049/1.396, allocations: 17.16 MB / 0.7938 GB, free: 188.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.261e-05/1.396, allocations: 6.625 kB / 0.7939 GB, free: 188.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00259/1.398, allocations: 0.5138 MB / 0.7944 GB, free: 188.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005926/1.404, allocations: 2.491 MB / 0.7968 GB, free: 187.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004757/1.405, allocations: 68.89 kB / 0.7969 GB, free: 187.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01716/1.422, allocations: 15.94 MB / 0.8124 GB, free: 175.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.227e-06/1.422, allocations: 9.25 kB / 0.8124 GB, free: 175.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01988/1.442, allocations: 12.78 MB / 0.8249 GB, free: 162.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003713/1.446, allocations: 1.107 MB / 0.826 GB, free: 161.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001902/1.447, allocations: 63.98 kB / 0.826 GB, free: 161.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003745/1.451, allocations: 229.6 kB / 0.8263 GB, free: 161.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008559/1.452, allocations: 217.3 kB / 0.8265 GB, free: 161.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002954/1.452, allocations: 88 kB / 0.8266 GB, free: 161 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006672/1.459, allocations: 3.369 MB / 0.8298 GB, free: 157.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.11e-07/1.459, allocations: 0 / 0.8298 GB, free: 157.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01109/1.47, allocations: 1.581 MB / 0.8314 GB, free: 156.1 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.001508/1.472, allocations: 207.8 kB / 0.8316 GB, free: 155.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01593/1.488, allocations: 9.146 MB / 0.8405 GB, free: 146.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-05/1.488, allocations: 4 kB / 0.8405 GB, free: 146.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005841/1.494, allocations: 3.579 MB / 0.844 GB, free: 143.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008011/1.502, allocations: 0.6883 MB / 0.8447 GB, free: 142.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0368/1.539, allocations: 15.51 MB / 0.8598 GB, free: 126.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01149/1.55, allocations: 4.378 MB / 0.8641 GB, free: 122.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002735/1.553, allocations: 411.3 kB / 0.8645 GB, free: 122.1 MB / 0.5919 GB Notification: Performance of SimCode: time 2.514e-06/1.553, allocations: 0 / 0.8645 GB, free: 122.1 MB / 0.5919 GB Notification: Performance of Templates: time 0.4874/2.04, allocations: 140.6 MB / 1.002 GB, free: 190.8 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