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.00151/0.001509, allocations: 100.5 kB / 16.4 MB, free: 6.496 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.002335/0.002335, allocations: 192.1 kB / 17.34 MB, free: 5.77 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.89/1.89, allocations: 205.1 MB / 223.2 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.2636/0.2636, allocations: 43.52 MB / 314.1 MB, free: 476 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.001438/0.001438, allocations: 64.38 kB / 441.8 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1528, allocations: 57.8 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01927/0.1722, allocations: 15.22 MB / 0.5028 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01407/0.1863, allocations: 5.09 MB / 0.5077 GB, free: 7.414 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004582/0.191, allocations: 99.69 kB / 0.5078 GB, free: 7.316 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009017/0.2, allocations: 4.17 MB / 0.5119 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008407/0.2085, allocations: 2.431 MB / 0.5143 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003728/0.2122, allocations: 1.084 MB / 0.5153 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01367/0.2259, allocations: 6.857 MB / 0.522 GB, free: 8.73 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009684/0.2357, allocations: 5.233 MB / 0.5271 GB, free: 3.434 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006621/0.2424, allocations: 2.325 MB / 0.5294 GB, free: 1.102 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3915/0.6339, allocations: 3.157 MB / 0.5325 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002445/0.6364, allocations: 0.504 MB / 0.533 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005799/0.6422, allocations: 1.381 MB / 0.5343 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006368/0.6486, allocations: 2.859 MB / 0.5371 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01231/0.6609, allocations: 3.26 MB / 0.5403 GB, free: 10.39 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02113/0.6821, allocations: 10.18 MB / 0.5503 GB, free: 8.961 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.6821, allocations: 0 / 0.5503 GB, free: 8.961 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.6821, allocations: 0.7812 kB / 0.5503 GB, free: 8.961 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000562/0.6827, allocations: 0 / 0.5503 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.03295/0.7157, allocations: 7.051 MB / 0.5571 GB, free: 5.609 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.7157, allocations: 15.45 kB / 0.5572 GB, free: 5.605 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03124/0.747, allocations: 3.361 MB / 0.5604 GB, free: 4.543 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01521/0.7622, allocations: 4.661 MB / 0.565 GB, free: 1.859 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005204/0.7628, allocations: 335.9 kB / 0.5653 GB, free: 1.746 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003389/0.7662, allocations: 456.5 kB / 0.5657 GB, free: 1.625 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03605/0.8023, allocations: 13.58 MB / 0.579 GB, free: 9.102 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003385/0.8027, allocations: 68.19 kB / 0.5791 GB, free: 9.059 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0012/0.8039, allocations: 207.8 kB / 0.5793 GB, free: 8.898 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005313/0.8092, allocations: 2.657 MB / 0.5819 GB, free: 6.277 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02978/0.8391, allocations: 11.82 MB / 0.5934 GB, free: 10.68 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09735/0.9365, allocations: 54.05 MB / 0.6462 GB, free: 3.836 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01518/0.9517, allocations: 5.778 MB / 0.6518 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005391/0.9571, allocations: 3.552 MB / 0.6553 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009831/0.9581, allocations: 0.6843 MB / 0.656 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.719e-05/0.9582, allocations: 63.84 kB / 0.656 GB, free: 9.516 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=254): time 6.882e-06/0.9582, allocations: 0 / 0.656 GB, free: 9.516 MB / 0.4981 GB Notification: Performance of matching and sorting (n=324): time 0.112/1.07, allocations: 37.24 MB / 0.6924 GB, free: 4.234 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/1.07, allocations: 273.2 kB / 0.6927 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00988/1.08, allocations: 5.32 MB / 0.6979 GB, free: 14.61 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001368/1.082, allocations: 77.7 kB / 0.6979 GB, free: 14.52 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003489/1.085, allocations: 3.995 MB / 0.7018 GB, free: 10.53 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002535/1.088, allocations: 1.204 MB / 0.703 GB, free: 9.336 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003193/1.091, allocations: 1.633 MB / 0.7046 GB, free: 7.691 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001181/1.091, allocations: 301.1 kB / 0.7049 GB, free: 7.395 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006283/1.097, allocations: 3.693 MB / 0.7085 GB, free: 3.691 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01032/1.108, allocations: 7.975 MB / 0.7163 GB, free: 9.688 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01846/1.126, allocations: 12.5 MB / 0.7285 GB, free: 11.69 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001542/1.126, allocations: 40 kB / 0.7285 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.03683/1.163, allocations: 13.98 MB / 0.7422 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003367/1.164, allocations: 68 kB / 0.7422 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004667/1.164, allocations: 152.1 kB / 0.7424 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008283/1.172, allocations: 2.765 MB / 0.7451 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007919/1.18, allocations: 1.825 MB / 0.7469 GB, free: 9.059 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4063/1.587, allocations: 17.79 MB / 0.7642 GB, free: 198.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008481/1.595, allocations: 491.2 kB / 0.7647 GB, free: 198.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002159/1.597, allocations: 468.1 kB / 0.7652 GB, free: 198.8 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.008792/1.606, allocations: 2.827 MB / 0.7679 GB, free: 197.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002074/1.608, allocations: 499 kB / 0.7684 GB, free: 197.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01791/1.626, allocations: 8.168 MB / 0.7764 GB, free: 194.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.099e-05/1.626, allocations: 35.69 kB / 0.7764 GB, free: 194.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.119e-05/1.626, allocations: 11 kB / 0.7764 GB, free: 194.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-05/1.627, allocations: 15.53 kB / 0.7764 GB, free: 194.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03788/1.664, allocations: 17.16 MB / 0.7932 GB, free: 188.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.751e-05/1.665, allocations: 6.625 kB / 0.7932 GB, free: 188.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002871/1.667, allocations: 0.5099 MB / 0.7937 GB, free: 188.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006396/1.674, allocations: 2.49 MB / 0.7961 GB, free: 187.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000924/1.675, allocations: 66.19 kB / 0.7962 GB, free: 187.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0185/1.693, allocations: 15.94 MB / 0.8118 GB, free: 175.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.087e-06/1.693, allocations: 11.94 kB / 0.8118 GB, free: 175.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02243/1.716, allocations: 12.79 MB / 0.8243 GB, free: 162.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004828/1.721, allocations: 1.106 MB / 0.8253 GB, free: 161.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002056/1.723, allocations: 56 kB / 0.8254 GB, free: 161.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005296/1.728, allocations: 234.8 kB / 0.8256 GB, free: 161.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001006/1.729, allocations: 217.4 kB / 0.8258 GB, free: 161.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004362/1.73, allocations: 87.98 kB / 0.8259 GB, free: 161 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.008811/1.738, allocations: 3.365 MB / 0.8292 GB, free: 157.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7.81e-07/1.738, allocations: 3.875 kB / 0.8292 GB, free: 157.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01282/1.751, allocations: 1.581 MB / 0.8307 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.001556/1.753, allocations: 207.8 kB / 0.8309 GB, free: 155.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01772/1.771, allocations: 9.148 MB / 0.8399 GB, free: 146.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.652e-05/1.771, allocations: 0 / 0.8399 GB, free: 146.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006284/1.777, allocations: 3.578 MB / 0.8434 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.009866/1.787, allocations: 0.6776 MB / 0.844 GB, free: 142.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03409/1.821, allocations: 14.96 MB / 0.8586 GB, free: 127.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00555/1.827, allocations: 4.417 MB / 0.8629 GB, free: 123.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005739/1.832, allocations: 2.508 MB / 0.8654 GB, free: 120.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001434/1.834, allocations: 355.3 kB / 0.8657 GB, free: 120.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.623e-06/1.834, allocations: 0 / 0.8657 GB, free: 120.2 MB / 0.5919 GB Notification: Performance of Templates: time 0.113/1.947, allocations: 66.67 MB / 0.9308 GB, free: 53.72 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins/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