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.0008049/0.0008049, allocations: 97.05 kB / 18.01 MB, free: 5.73 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.000986/0.0009862, allocations: 177.5 kB / 18.91 MB, free: 4.867 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.413/1.413, allocations: 223.3 MB / 242.9 MB, free: 112 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2084/0.2084, allocations: 44.24 MB / 338.3 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003443/0.0003442, allocations: 8 kB / 411 MB, free: 27.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1311, allocations: 61.92 MB / 472.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.3442/0.4754, allocations: 72.43 MB / 0.5326 GB, free: 9.621 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03797/0.5134, allocations: 14.87 MB / 0.5471 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01826/0.5317, allocations: 324.3 kB / 0.5474 GB, free: 3.371 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00208/0.5338, allocations: 0.5601 MB / 0.5479 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006786/0.5406, allocations: 2.226 MB / 0.5501 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002462/0.5431, allocations: 0.9938 MB / 0.5511 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01252/0.5557, allocations: 9.857 MB / 0.5607 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01143/0.5671, allocations: 7.047 MB / 0.5676 GB, free: 3.488 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004082/0.5712, allocations: 1.661 MB / 0.5692 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005208/0.5765, allocations: 2.869 MB / 0.572 GB, free: 14.94 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001511/0.578, allocations: 204 kB / 0.5722 GB, free: 14.74 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003536/0.5815, allocations: 1.151 MB / 0.5733 GB, free: 13.59 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003833/0.5854, allocations: 2.47 MB / 0.5758 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00582/0.5912, allocations: 2.8 MB / 0.5785 GB, free: 8.289 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00995/0.6012, allocations: 7.676 MB / 0.586 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.6012, allocations: 0 / 0.586 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6013, allocations: 3.938 kB / 0.586 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004163/0.6017, allocations: 0 / 0.586 GB, free: 0.5898 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: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.01588/0.6176, allocations: 5.686 MB / 0.5915 GB, free: 10.82 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.6176, allocations: 8.031 kB / 0.5915 GB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02927/0.6469, allocations: 3.429 MB / 0.5949 GB, free: 7.375 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01199/0.6589, allocations: 4.419 MB / 0.5992 GB, free: 2.871 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004123/0.6594, allocations: 328.8 kB / 0.5995 GB, free: 2.547 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001926/0.6613, allocations: 447.6 kB / 0.6 GB, free: 2.109 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02692/0.6883, allocations: 13.3 MB / 0.6129 GB, free: 3.938 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003025/0.6886, allocations: 71.33 kB / 0.613 GB, free: 3.867 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001272/0.6899, allocations: 203.8 kB / 0.6132 GB, free: 3.668 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004525/0.6944, allocations: 2.59 MB / 0.6157 GB, free: 1.078 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02224/0.7167, allocations: 11.56 MB / 0.627 GB, free: 5.508 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07613/0.7928, allocations: 53.48 MB / 0.6792 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01462/0.8075, allocations: 5.674 MB / 0.6848 GB, free: 8.672 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004823/0.8123, allocations: 3.501 MB / 0.6882 GB, free: 5.16 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007764/0.8131, allocations: 0.6838 MB / 0.6889 GB, free: 4.363 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.444e-05/0.8132, allocations: 64.5 kB / 0.6889 GB, free: 4.293 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=245): time 6.142e-06/0.8132, allocations: 0 / 0.6889 GB, free: 4.293 MB / 0.5137 GB Notification: Performance of matching and sorting (n=315): time 0.4572/1.27, allocations: 36.58 MB / 0.7247 GB, free: 130.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/1.271, allocations: 266.7 kB / 0.7249 GB, free: 130.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01112/1.282, allocations: 5.232 MB / 0.73 GB, free: 129.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008227/1.283, allocations: 71.17 kB / 0.7301 GB, free: 129.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002828/1.285, allocations: 3.912 MB / 0.7339 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001834/1.287, allocations: 1.179 MB / 0.7351 GB, free: 126 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001472/1.289, allocations: 0.6764 MB / 0.7357 GB, free: 125.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.981e-05/1.289, allocations: 308.8 kB / 0.736 GB, free: 125.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005043/1.294, allocations: 3.636 MB / 0.7396 GB, free: 124.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006519/1.3, allocations: 7.823 MB / 0.7472 GB, free: 117.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01289/1.313, allocations: 12.27 MB / 0.7592 GB, free: 108.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001723/1.314, allocations: 43.09 kB / 0.7592 GB, free: 108.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.02516/1.339, allocations: 13.76 MB / 0.7727 GB, free: 97.66 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002171/1.339, allocations: 68 kB / 0.7727 GB, free: 97.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000254/1.339, allocations: 152.8 kB / 0.7729 GB, free: 97.44 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006516/1.346, allocations: 2.753 MB / 0.7756 GB, free: 94.68 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006118/1.352, allocations: 1.782 MB / 0.7773 GB, free: 93.04 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0185/1.37, allocations: 16.61 MB / 0.7935 GB, free: 76.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007242/1.378, allocations: 472.5 kB / 0.794 GB, free: 75.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001721/1.38, allocations: 455.9 kB / 0.7944 GB, free: 75.36 MB / 0.5294 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.006664/1.386, allocations: 2.768 MB / 0.7971 GB, free: 72.73 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001704/1.388, allocations: 497.7 kB / 0.7976 GB, free: 72.24 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01477/1.403, allocations: 8.04 MB / 0.8054 GB, free: 64.17 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-05/1.403, allocations: 32.7 kB / 0.8055 GB, free: 64.14 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.518e-05/1.403, allocations: 12 kB / 0.8055 GB, free: 64.12 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.058e-05/1.403, allocations: 19.88 kB / 0.8055 GB, free: 64.11 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03157/1.434, allocations: 17.14 MB / 0.8222 GB, free: 47.01 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.161e-05/1.435, allocations: 8 kB / 0.8223 GB, free: 47 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002496/1.437, allocations: 0.4972 MB / 0.8227 GB, free: 46.53 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005947/1.443, allocations: 2.481 MB / 0.8252 GB, free: 44.04 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005412/1.444, allocations: 63.83 kB / 0.8252 GB, free: 43.98 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01637/1.46, allocations: 14.81 MB / 0.8397 GB, free: 28.95 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.888e-06/1.46, allocations: 16.42 kB / 0.8397 GB, free: 28.93 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0186/1.479, allocations: 12.57 MB / 0.852 GB, free: 16.21 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001792/1.48, allocations: 0.5455 MB / 0.8525 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001678/1.482, allocations: 63.98 kB / 0.8526 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00361/1.486, allocations: 235.7 kB / 0.8528 GB, free: 15.35 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008104/1.487, allocations: 208.1 kB / 0.853 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000401/1.487, allocations: 87.44 kB / 0.8531 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006163/1.493, allocations: 3.301 MB / 0.8563 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.6e-07/1.493, allocations: 0 / 0.8563 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00944/1.503, allocations: 1.55 MB / 0.8578 GB, free: 10.23 MB / 0.5294 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.001083/1.504, allocations: 215.4 kB / 0.858 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01413/1.518, allocations: 8.858 MB / 0.8667 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/1.518, allocations: 4 kB / 0.8667 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00588/1.524, allocations: 3.557 MB / 0.8701 GB, free: 14.06 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01089/1.535, allocations: 0.6441 MB / 0.8708 GB, free: 13.43 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03063/1.565, allocations: 18.3 MB / 0.8887 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005864/1.571, allocations: 4.297 MB / 0.8928 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001864/1.573, allocations: 395.4 kB / 0.8932 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of SimCode: time 9.72e-07/1.573, allocations: 4 kB / 0.8932 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of Templates: time 0.4168/1.99, allocations: 134.9 MB / 1.025 GB, free: 152.5 MB / 0.5919 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins1/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