Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00103/0.00103, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001297/0.001297, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.232/0.232, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001554, allocations: 71.89 kB / 481.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4594/0.461, allocations: 62.44 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01716/0.4782, allocations: 14.67 MB / 0.5453 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01148/0.4897, allocations: 5 MB / 0.5502 GB, free: 14 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003095/0.4928, allocations: 99.69 kB / 0.5503 GB, free: 13.9 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007876/0.5008, allocations: 4.143 MB / 0.5544 GB, free: 9.742 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007179/0.508, allocations: 2.311 MB / 0.5566 GB, free: 7.422 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002518/0.5105, allocations: 1.076 MB / 0.5577 GB, free: 6.344 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01007/0.5206, allocations: 7.148 MB / 0.5646 GB, free: 15.18 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007338/0.528, allocations: 5.135 MB / 0.5697 GB, free: 9.984 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005147/0.5332, allocations: 2.235 MB / 0.5718 GB, free: 7.742 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005675/0.5389, allocations: 3.061 MB / 0.5748 GB, free: 4.672 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002253/0.5412, allocations: 0.4922 MB / 0.5753 GB, free: 4.18 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003747/0.5449, allocations: 1.354 MB / 0.5766 GB, free: 2.824 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003651/0.5486, allocations: 2.747 MB / 0.5793 GB, free: 72 kB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004323/0.553, allocations: 3.135 MB / 0.5824 GB, free: 12.91 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01104/0.564, allocations: 9.77 MB / 0.5919 GB, free: 3.117 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.5641, allocations: 0 / 0.5919 GB, free: 3.117 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5641, allocations: 0 / 0.5919 GB, free: 3.117 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002756/0.5644, allocations: 0 / 0.5919 GB, free: 3.117 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1953 * Number of variables: 1953 Notification: Performance of Generate backend data structure: time 0.0183/0.5827, allocations: 6.867 MB / 0.5986 GB, free: 12.17 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/0.5827, allocations: 8.031 kB / 0.5986 GB, free: 12.16 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02824/0.611, allocations: 3.32 MB / 0.6019 GB, free: 8.828 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01187/0.6229, allocations: 4.399 MB / 0.6062 GB, free: 4.371 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003249/0.6232, allocations: 324.8 kB / 0.6065 GB, free: 4.051 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00175/0.625, allocations: 459.5 kB / 0.6069 GB, free: 3.602 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02288/0.6479, allocations: 13.09 MB / 0.6197 GB, free: 5.637 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002153/0.6482, allocations: 63.42 kB / 0.6198 GB, free: 5.574 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006065/0.6488, allocations: 203.8 kB / 0.62 GB, free: 5.375 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004549/0.6533, allocations: 2.535 MB / 0.6224 GB, free: 2.84 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0228/0.6761, allocations: 11.38 MB / 0.6335 GB, free: 7.445 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08631/0.7625, allocations: 52.75 MB / 0.6851 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02101/0.7836, allocations: 5.653 MB / 0.6906 GB, free: 11.37 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006946/0.7906, allocations: 3.511 MB / 0.694 GB, free: 7.852 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001108/0.7918, allocations: 0.6839 MB / 0.6947 GB, free: 7.059 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.229e-05/0.7918, allocations: 56.56 kB / 0.6947 GB, free: 6.992 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 7.925e-06/0.7919, allocations: 0 / 0.6947 GB, free: 6.992 MB / 0.545 GB Notification: Performance of matching and sorting (n=315): time 0.4578/1.25, allocations: 36.49 MB / 0.7304 GB, free: 157.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/1.25, allocations: 270.7 kB / 0.7306 GB, free: 157.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008031/1.258, allocations: 5.162 MB / 0.7357 GB, free: 155.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001083/1.259, allocations: 77.17 kB / 0.7357 GB, free: 155.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002728/1.262, allocations: 3.872 MB / 0.7395 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001689/1.263, allocations: 1.173 MB / 0.7407 GB, free: 151.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002239/1.266, allocations: 1.592 MB / 0.7422 GB, free: 151.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.422e-05/1.266, allocations: 305.1 kB / 0.7425 GB, free: 150.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004342/1.27, allocations: 3.632 MB / 0.7461 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006149/1.276, allocations: 7.806 MB / 0.7537 GB, free: 142.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01171/1.288, allocations: 12.24 MB / 0.7656 GB, free: 128.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/1.288, allocations: 40.69 kB / 0.7657 GB, free: 128 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.02272/1.311, allocations: 13.74 MB / 0.7791 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.186e-05/1.311, allocations: 71.94 kB / 0.7792 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001291/1.311, allocations: 144 kB / 0.7793 GB, free: 114 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006472/1.318, allocations: 2.754 MB / 0.782 GB, free: 111.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006369/1.324, allocations: 1.778 MB / 0.7837 GB, free: 109.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01854/1.343, allocations: 17.8 MB / 0.8011 GB, free: 91.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007074/1.35, allocations: 483 kB / 0.8016 GB, free: 90.94 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001379/1.351, allocations: 451.9 kB / 0.802 GB, free: 90.5 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 656 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.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 (948): * Single equations (assignments): 943 * 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.005093/1.356, allocations: 2.747 MB / 0.8047 GB, free: 87.74 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00166/1.358, allocations: 477.8 kB / 0.8051 GB, free: 87.27 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01242/1.37, allocations: 8.046 MB / 0.813 GB, free: 79.16 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-05/1.37, allocations: 32 kB / 0.813 GB, free: 79.12 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.992e-05/1.37, allocations: 12 kB / 0.813 GB, free: 79.11 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.576e-05/1.37, allocations: 15.94 kB / 0.8131 GB, free: 79.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02793/1.398, allocations: 16.83 MB / 0.8295 GB, free: 62.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.209e-05/1.399, allocations: 7.938 kB / 0.8295 GB, free: 62.19 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002905/1.401, allocations: 0.4915 MB / 0.83 GB, free: 61.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005902/1.407, allocations: 2.487 MB / 0.8324 GB, free: 59.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006902/1.408, allocations: 59.98 kB / 0.8325 GB, free: 59.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01618/1.424, allocations: 15.96 MB / 0.848 GB, free: 42.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/1.424, allocations: 15.94 kB / 0.8481 GB, free: 42.89 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01757/1.442, allocations: 12.6 MB / 0.8604 GB, free: 30.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001873/1.444, allocations: 0.5339 MB / 0.8609 GB, free: 29.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001277/1.445, allocations: 59.44 kB / 0.8609 GB, free: 29.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002934/1.448, allocations: 227.7 kB / 0.8612 GB, free: 29.26 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006637/1.449, allocations: 205.5 kB / 0.8614 GB, free: 29.06 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002307/1.449, allocations: 87.98 kB / 0.8614 GB, free: 28.97 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004648/1.454, allocations: 3.268 MB / 0.8646 GB, free: 25.72 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6.52e-07/1.454, allocations: 0 / 0.8646 GB, free: 25.72 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008169/1.462, allocations: 1.522 MB / 0.8661 GB, free: 24.2 MB / 0.5606 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.0008989/1.463, allocations: 213.3 kB / 0.8663 GB, free: 23.99 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01301/1.476, allocations: 8.901 MB / 0.875 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.691e-05/1.476, allocations: 0 / 0.875 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004856/1.481, allocations: 3.575 MB / 0.8785 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00629/1.487, allocations: 0.6731 MB / 0.8792 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04134/1.528, allocations: 14.52 MB / 0.8933 GB, free: 12.21 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01011/1.539, allocations: 4.277 MB / 0.8975 GB, free: 7.91 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.01062/1.549, allocations: 2.46 MB / 0.8999 GB, free: 5.441 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002522/1.552, allocations: 343.4 kB / 0.9003 GB, free: 5.105 MB / 0.5763 GB Notification: Performance of SimCode: time 1.353e-06/1.552, allocations: 0 / 0.9003 GB, free: 5.105 MB / 0.5763 GB Notification: Performance of Templates: time 0.5225/2.074, allocations: 65.45 MB / 0.9642 GB, free: 206.3 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches