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.001231/0.001231, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001408/0.001408, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2379/0.2379, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00249/0.00249, allocations: 79.12 kB / 417.6 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.189, allocations: 62.44 MB / 480 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.02071/0.2098, allocations: 14.66 MB / 494.7 MB, free: 6.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01352/0.2233, allocations: 4.996 MB / 499.7 MB, free: 1.559 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004095/0.2275, allocations: 103.7 kB / 499.8 MB, free: 1.457 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008658/0.2362, allocations: 4.135 MB / 0.4921 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008958/0.2452, allocations: 2.314 MB / 0.4944 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003178/0.2484, allocations: 1.072 MB / 0.4954 GB, free: 9.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01144/0.2598, allocations: 7.165 MB / 0.5024 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.312/0.5719, allocations: 5.133 MB / 0.5074 GB, free: 14.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005472/0.5774, allocations: 2.215 MB / 0.5096 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006004/0.5834, allocations: 3.054 MB / 0.5126 GB, free: 13.99 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001841/0.5853, allocations: 497.1 kB / 0.513 GB, free: 13.99 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003783/0.5891, allocations: 1.361 MB / 0.5144 GB, free: 13.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003972/0.5931, allocations: 2.733 MB / 0.517 GB, free: 13.72 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005111/0.5982, allocations: 3.126 MB / 0.5201 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01315/0.6114, allocations: 9.507 MB / 0.5294 GB, free: 9.324 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.6114, allocations: 0 / 0.5294 GB, free: 9.324 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.6114, allocations: 0 / 0.5294 GB, free: 9.324 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003848/0.6118, allocations: 5.469 kB / 0.5294 GB, free: 9.32 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: 1953 * Number of variables: 1953 Notification: Performance of Generate backend data structure: time 0.02006/0.6319, allocations: 6.852 MB / 0.5361 GB, free: 4.766 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.6319, allocations: 14.81 kB / 0.5361 GB, free: 4.762 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02582/0.6578, allocations: 3.312 MB / 0.5393 GB, free: 3.238 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0115/0.6693, allocations: 4.317 MB / 0.5435 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003591/0.6697, allocations: 327.5 kB / 0.5438 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002422/0.6722, allocations: 437.6 kB / 0.5443 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02888/0.701, allocations: 13.1 MB / 0.5571 GB, free: 3.648 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003163/0.7014, allocations: 72.64 kB / 0.5571 GB, free: 3.602 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007883/0.7022, allocations: 207.4 kB / 0.5573 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004672/0.7069, allocations: 2.528 MB / 0.5598 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0255/0.7324, allocations: 11.39 MB / 0.5709 GB, free: 5.777 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07448/0.8069, allocations: 53.01 MB / 0.6227 GB, free: 15.96 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01393/0.8209, allocations: 5.658 MB / 0.6282 GB, free: 10.17 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004253/0.8252, allocations: 3.515 MB / 0.6316 GB, free: 6.66 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006737/0.8259, allocations: 0.6801 MB / 0.6323 GB, free: 5.883 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.035e-05/0.8259, allocations: 60.56 kB / 0.6324 GB, free: 5.816 MB / 478.1 MB Notification: Performance of pre-optimization done (n=245): time 4.939e-06/0.826, allocations: 2.625 kB / 0.6324 GB, free: 5.816 MB / 478.1 MB Notification: Performance of matching and sorting (n=315): time 0.1139/0.9399, allocations: 36.48 MB / 0.668 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001914/0.9401, allocations: 265.3 kB / 0.6682 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01126/0.9514, allocations: 5.172 MB / 0.6733 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0008863/0.9523, allocations: 73.7 kB / 0.6734 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.004018/0.9563, allocations: 3.868 MB / 0.6771 GB, free: 7.84 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002312/0.9586, allocations: 1.174 MB / 0.6783 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005078/0.9637, allocations: 1.591 MB / 0.6798 GB, free: 5.074 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000102/0.9639, allocations: 305.1 kB / 0.6801 GB, free: 4.773 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006425/0.9703, allocations: 3.631 MB / 0.6837 GB, free: 1.137 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01002/0.9803, allocations: 7.809 MB / 0.6913 GB, free: 7.359 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01793/0.9983, allocations: 12.25 MB / 0.7033 GB, free: 9.66 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001533/0.9985, allocations: 48 kB / 0.7033 GB, free: 9.613 MB / 0.545 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.305/1.304, allocations: 13.73 MB / 0.7167 GB, free: 182.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001403/1.304, allocations: 65.81 kB / 0.7168 GB, free: 182.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002964/1.304, allocations: 144 kB / 0.7169 GB, free: 182.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008335/1.312, allocations: 2.766 MB / 0.7196 GB, free: 182.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007491/1.32, allocations: 1.774 MB / 0.7213 GB, free: 182.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0236/1.343, allocations: 17.82 MB / 0.7387 GB, free: 174.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008265/1.352, allocations: 470.6 kB / 0.7392 GB, free: 174.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001639/1.353, allocations: 460.7 kB / 0.7396 GB, free: 174.5 MB / 0.545 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.006465/1.36, allocations: 2.747 MB / 0.7423 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00148/1.361, allocations: 480.6 kB / 0.7428 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01374/1.375, allocations: 8.044 MB / 0.7506 GB, free: 170.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.954e-05/1.375, allocations: 35.44 kB / 0.7507 GB, free: 170.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-05/1.375, allocations: 10.28 kB / 0.7507 GB, free: 170.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.388e-05/1.375, allocations: 15.23 kB / 0.7507 GB, free: 170.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02995/1.405, allocations: 17.07 MB / 0.7674 GB, free: 159 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.888e-05/1.405, allocations: 8 kB / 0.7674 GB, free: 159 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002384/1.408, allocations: 0.4992 MB / 0.7679 GB, free: 158.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005761/1.414, allocations: 2.492 MB / 0.7703 GB, free: 156 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004993/1.414, allocations: 60.5 kB / 0.7703 GB, free: 156 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01664/1.431, allocations: 15.87 MB / 0.7858 GB, free: 139.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/1.431, allocations: 8 kB / 0.7858 GB, free: 139.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02067/1.452, allocations: 12.58 MB / 0.7981 GB, free: 127.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002063/1.454, allocations: 0.5339 MB / 0.7987 GB, free: 127 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00206/1.456, allocations: 61.48 kB / 0.7987 GB, free: 126.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004103/1.46, allocations: 221.7 kB / 0.7989 GB, free: 126.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001036/1.461, allocations: 205.6 kB / 0.7991 GB, free: 126.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005397/1.461, allocations: 90.91 kB / 0.7992 GB, free: 126.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007551/1.469, allocations: 3.261 MB / 0.8024 GB, free: 123.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.21e-07/1.469, allocations: 4 kB / 0.8024 GB, free: 123.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01144/1.481, allocations: 1.533 MB / 0.8039 GB, free: 121.6 MB / 0.545 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.001376/1.482, allocations: 201.4 kB / 0.8041 GB, free: 121.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02089/1.503, allocations: 12.39 MB / 0.8162 GB, free: 109.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2e-05/1.503, allocations: 4 kB / 0.8162 GB, free: 109 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006216/1.509, allocations: 3.572 MB / 0.8197 GB, free: 105.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008262/1.517, allocations: 0.6628 MB / 0.8203 GB, free: 104.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03221/1.55, allocations: 14.68 MB / 0.8347 GB, free: 90.03 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007222/1.557, allocations: 4.275 MB / 0.8388 GB, free: 85.73 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00691/1.564, allocations: 2.46 MB / 0.8412 GB, free: 83.26 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001507/1.565, allocations: 343.4 kB / 0.8416 GB, free: 82.92 MB / 0.545 GB Notification: Performance of SimCode: time 1.423e-06/1.565, allocations: 0 / 0.8416 GB, free: 82.92 MB / 0.545 GB Notification: Performance of Templates: time 0.1051/1.671, allocations: 68.85 MB / 0.9088 GB, free: 14.33 MB / 0.545 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