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.001129/0.001129, allocations: 109.4 kB / 17.04 MB, free: 5.809 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.001222/0.001223, allocations: 195 kB / 17.98 MB, free: 5.027 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.491/1.491, allocations: 205.1 MB / 223.8 MB, free: 12.27 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.2152/0.2152, allocations: 43.52 MB / 314.7 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.00159/0.00159, allocations: 67.94 kB / 384.2 MB, free: 56.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.117, allocations: 57.79 MB / 442 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01426/0.1313, allocations: 15.22 MB / 457.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01087/0.1423, allocations: 5.086 MB / 462.3 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00327/0.1456, allocations: 99.69 kB / 462.4 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007834/0.1534, allocations: 4.174 MB / 466.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007284/0.1608, allocations: 2.419 MB / 469 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002879/0.1637, allocations: 1.092 MB / 470.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01006/0.1737, allocations: 6.864 MB / 476.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007785/0.1816, allocations: 5.229 MB / 482.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004277/0.1859, allocations: 2.305 MB / 484.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004948/0.1909, allocations: 3.158 MB / 487.6 MB, free: 8.289 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001725/0.1926, allocations: 0.5 MB / 488.1 MB, free: 7.789 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003357/0.196, allocations: 1.381 MB / 489.5 MB, free: 6.406 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003766/0.1998, allocations: 2.856 MB / 492.4 MB, free: 3.543 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005855/0.2056, allocations: 3.251 MB / 495.6 MB, free: 280 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01233/0.218, allocations: 10.18 MB / 0.4939 GB, free: 6.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.218, allocations: 0 / 0.4939 GB, free: 6.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.218, allocations: 0 / 0.4939 GB, free: 6.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003987/0.2184, allocations: 0 / 0.4939 GB, free: 6.059 MB / 382.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.02163/0.2401, allocations: 7.043 MB / 0.5008 GB, free: 14.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.2402, allocations: 15.89 kB / 0.5008 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02586/0.266, allocations: 3.363 MB / 0.5041 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01369/0.2798, allocations: 4.658 MB / 0.5087 GB, free: 6.801 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004176/0.2802, allocations: 333 kB / 0.509 GB, free: 6.473 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002474/0.2827, allocations: 459.5 kB / 0.5094 GB, free: 6.023 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02747/0.3102, allocations: 13.58 MB / 0.5227 GB, free: 7.566 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002471/0.3105, allocations: 71.33 kB / 0.5227 GB, free: 7.496 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006684/0.3112, allocations: 207.8 kB / 0.5229 GB, free: 7.293 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00471/0.3159, allocations: 2.652 MB / 0.5255 GB, free: 4.633 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2771/0.593, allocations: 11.83 MB / 0.5371 GB, free: 78.67 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05725/0.6503, allocations: 54.05 MB / 0.5899 GB, free: 36.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01137/0.6617, allocations: 5.786 MB / 0.5955 GB, free: 30.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003427/0.6652, allocations: 3.544 MB / 0.599 GB, free: 26.8 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005603/0.6657, allocations: 0.6942 MB / 0.5997 GB, free: 26.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.55e-05/0.6658, allocations: 64.48 kB / 0.5997 GB, free: 25.95 MB / 414.1 MB Notification: Performance of pre-optimization done (n=254): time 5.24e-06/0.6658, allocations: 3.938 kB / 0.5997 GB, free: 25.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=324): time 0.09001/0.7558, allocations: 37.21 MB / 0.6361 GB, free: 4.609 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000167/0.756, allocations: 269.3 kB / 0.6363 GB, free: 4.289 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007626/0.7637, allocations: 5.321 MB / 0.6415 GB, free: 14.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007684/0.7645, allocations: 77.7 kB / 0.6416 GB, free: 14.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002801/0.7673, allocations: 3.99 MB / 0.6455 GB, free: 10.91 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0013/0.7686, allocations: 1.207 MB / 0.6467 GB, free: 9.711 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002096/0.7707, allocations: 1.634 MB / 0.6482 GB, free: 8.066 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.331e-05/0.7708, allocations: 305.1 kB / 0.6485 GB, free: 7.766 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004921/0.7757, allocations: 3.693 MB / 0.6521 GB, free: 4.062 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007529/0.7833, allocations: 7.976 MB / 0.6599 GB, free: 9.984 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01455/0.7978, allocations: 12.5 MB / 0.6721 GB, free: 11.38 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.906e-05/0.798, allocations: 48 kB / 0.6722 GB, free: 11.34 MB / 478.1 MB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.02629/0.8243, allocations: 13.97 MB / 0.6858 GB, free: 13.31 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001017/0.8244, allocations: 68 kB / 0.6859 GB, free: 13.24 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001629/0.8246, allocations: 156 kB / 0.686 GB, free: 13.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006713/0.8313, allocations: 2.763 MB / 0.6887 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006368/0.8377, allocations: 1.829 MB / 0.6905 GB, free: 8.488 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02277/0.8605, allocations: 17.8 MB / 0.7079 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006585/0.8671, allocations: 483.2 kB / 0.7084 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001039/0.8682, allocations: 473.6 kB / 0.7088 GB, free: 5.48 MB / 0.4981 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.004771/0.8729, allocations: 2.825 MB / 0.7116 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001066/0.874, allocations: 497.6 kB / 0.7121 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01438/0.8884, allocations: 8.168 MB / 0.72 GB, free: 9.914 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.296e-05/0.8885, allocations: 32 kB / 0.7201 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.182e-05/0.8885, allocations: 12 kB / 0.7201 GB, free: 9.871 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.994e-05/0.8886, allocations: 11.95 kB / 0.7201 GB, free: 9.859 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2518/1.14, allocations: 17.33 MB / 0.737 GB, free: 171.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-05/1.14, allocations: 7.266 kB / 0.737 GB, free: 171.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002672/1.143, allocations: 0.5102 MB / 0.7375 GB, free: 171.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006731/1.15, allocations: 2.492 MB / 0.74 GB, free: 171.6 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005567/1.15, allocations: 64.3 kB / 0.74 GB, free: 171.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01764/1.168, allocations: 15.82 MB / 0.7555 GB, free: 164.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/1.168, allocations: 11.22 kB / 0.7555 GB, free: 164.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01688/1.185, allocations: 12.77 MB / 0.7679 GB, free: 159.2 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003467/1.189, allocations: 1.106 MB / 0.769 GB, free: 158.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001161/1.19, allocations: 69.53 kB / 0.7691 GB, free: 158.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002551/1.192, allocations: 227.8 kB / 0.7693 GB, free: 158.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006979/1.193, allocations: 210.7 kB / 0.7695 GB, free: 158.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002532/1.193, allocations: 86.44 kB / 0.7696 GB, free: 158.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004948/1.198, allocations: 3.367 MB / 0.7729 GB, free: 157.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.7e-07/1.198, allocations: 0 / 0.7729 GB, free: 157.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006871/1.205, allocations: 1.581 MB / 0.7744 GB, free: 155.6 MB / 0.5137 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.0005514/1.206, allocations: 214.7 kB / 0.7746 GB, free: 155.4 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01819/1.224, allocations: 9.144 MB / 0.7836 GB, free: 147.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.524e-05/1.224, allocations: 3.188 kB / 0.7836 GB, free: 147.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006862/1.231, allocations: 3.568 MB / 0.7871 GB, free: 143.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006203/1.237, allocations: 0.6766 MB / 0.7877 GB, free: 143.1 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0319/1.269, allocations: 14.96 MB / 0.8023 GB, free: 128.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006432/1.275, allocations: 4.412 MB / 0.8066 GB, free: 123.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007415/1.283, allocations: 2.512 MB / 0.8091 GB, free: 121.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001138/1.284, allocations: 355.4 kB / 0.8094 GB, free: 121 MB / 0.5137 GB Notification: Performance of SimCode: time 7.71e-07/1.284, allocations: 7.938 kB / 0.8094 GB, free: 121 MB / 0.5137 GB Notification: Performance of Templates: time 0.09549/1.38, allocations: 63.48 MB / 0.8714 GB, free: 57.73 MB / 0.5137 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 -s gbode -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