Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.BodyShape.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Parts.BodyShape,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.BodyShape") translateModel(ModelicaTest.MultiBody.Parts.BodyShape,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.BodyShape") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001398/0.001398, allocations: 202.3 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007668/0.0007668, allocations: 100.8 kB / 295.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1957/0.1957, allocations: 44.85 MB / 392 MB, free: 9.336 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002513/0.0002514, allocations: 8 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1016, allocations: 62.96 MB / 0.5153 GB, free: 2.773 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.BodyShape): time 0.2117/0.3133, allocations: 41.7 MB / 0.556 GB, free: 232 kB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0207/0.334, allocations: 9.451 MB / 0.5653 GB, free: 9.758 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007322/0.3413, allocations: 201.7 kB / 0.5655 GB, free: 9.723 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005507/0.3469, allocations: 2.142 MB / 0.5676 GB, free: 8.066 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01564/0.3625, allocations: 6.432 MB / 0.5738 GB, free: 1.609 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002891/0.3654, allocations: 0.6045 MB / 0.5744 GB, free: 1.004 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005648/0.3711, allocations: 4.836 MB / 0.5792 GB, free: 12.16 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005415/0.3765, allocations: 3.999 MB / 0.5831 GB, free: 8.102 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002045/0.3786, allocations: 1.226 MB / 0.5843 GB, free: 6.871 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002512/0.3811, allocations: 1.814 MB / 0.586 GB, free: 5.051 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006643/0.3818, allocations: 132 kB / 0.5862 GB, free: 4.922 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002137/0.384, allocations: 0.94 MB / 0.5871 GB, free: 3.98 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00185/0.3858, allocations: 1.675 MB / 0.5887 GB, free: 2.301 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001243/0.3871, allocations: 0.8194 MB / 0.5895 GB, free: 1.473 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005314/0.3924, allocations: 5.274 MB / 0.5947 GB, free: 12.19 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-05/0.3925, allocations: 0 / 0.5947 GB, free: 12.19 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.996e-06/0.3925, allocations: 0 / 0.5947 GB, free: 12.19 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003124/0.3928, allocations: 0 / 0.5947 GB, free: 12.19 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1478 * Number of variables: 1478 Notification: Performance of Generate backend data structure: time 0.009062/0.4019, allocations: 3.898 MB / 0.5985 GB, free: 8.223 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.4019, allocations: 12.03 kB / 0.5985 GB, free: 8.211 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007622/0.4096, allocations: 2.03 MB / 0.6005 GB, free: 6.172 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006076/0.4157, allocations: 2.264 MB / 0.6027 GB, free: 3.848 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002767/0.416, allocations: 234.1 kB / 0.6029 GB, free: 3.617 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001719/0.4177, allocations: 411.4 kB / 0.6033 GB, free: 3.215 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02044/0.4382, allocations: 9.853 MB / 0.6129 GB, free: 8.684 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002158/0.4384, allocations: 43.53 kB / 0.613 GB, free: 8.641 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00108/0.4395, allocations: 167.8 kB / 0.6131 GB, free: 8.477 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003005/0.4426, allocations: 1.814 MB / 0.6149 GB, free: 6.656 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01636/0.4589, allocations: 8.271 MB / 0.623 GB, free: 14.36 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04684/0.5058, allocations: 38.87 MB / 0.6609 GB, free: 6.262 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008633/0.5145, allocations: 3.718 MB / 0.6646 GB, free: 2.395 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002121/0.5167, allocations: 1.57 MB / 0.6661 GB, free: 0.8164 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01045/0.5271, allocations: 7.744 MB / 0.6736 GB, free: 8.699 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.301e-05/0.5272, allocations: 47.5 kB / 0.6737 GB, free: 8.645 MB / 490.7 MB Notification: Performance of pre-optimization done (n=144): time 5.059e-06/0.5272, allocations: 4 kB / 0.6737 GB, free: 8.641 MB / 490.7 MB Notification: Performance of matching and sorting (n=160): time 0.03564/0.5629, allocations: 14.22 MB / 0.6876 GB, free: 10.23 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001196/0.5641, allocations: 1.585 MB / 0.6891 GB, free: 8.477 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005564/0.5697, allocations: 3.828 MB / 0.6929 GB, free: 4.664 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003118/0.57, allocations: 45.7 kB / 0.6929 GB, free: 4.613 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002232/0.5723, allocations: 3.082 MB / 0.6959 GB, free: 1.484 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008922/0.5732, allocations: 0.6558 MB / 0.6966 GB, free: 0.8203 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004349/0.5737, allocations: 120 kB / 0.6967 GB, free: 0.7031 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004122/0.5741, allocations: 0.5582 MB / 0.6972 GB, free: 140 kB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003124/0.5772, allocations: 2.011 MB / 0.6992 GB, free: 14.12 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005358/0.5826, allocations: 5.743 MB / 0.7048 GB, free: 6.504 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004658/0.5873, allocations: 3.322 MB / 0.708 GB, free: 3.18 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001007/0.5874, allocations: 40 kB / 0.7081 GB, free: 3.141 MB / 0.5105 GB Notification: Performance of matching and sorting (n=786) (initialization): time 0.2164/0.8038, allocations: 9.308 MB / 0.7172 GB, free: 160.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.8039, allocations: 62.12 kB / 0.7172 GB, free: 160.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01056/0.8145, allocations: 3.582 MB / 0.7207 GB, free: 159.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01039/0.8249, allocations: 2.38 MB / 0.723 GB, free: 159.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004322/0.8293, allocations: 1.374 MB / 0.7244 GB, free: 159.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007868/0.8372, allocations: 6.353 MB / 0.7306 GB, free: 155.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004147/0.8413, allocations: 394.9 kB / 0.731 GB, free: 155.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007704/0.8421, allocations: 377.4 kB / 0.7313 GB, free: 155.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 604 * Number of states: 0 () * Number of discrete variables: 41 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (748): * Single equations (assignments): 739 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002871/0.845, allocations: 2.041 MB / 0.7333 GB, free: 154.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005295/0.8456, allocations: 332.4 kB / 0.7336 GB, free: 154.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004981/0.8505, allocations: 2.962 MB / 0.7365 GB, free: 153.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003966/0.8545, allocations: 2.491 MB / 0.739 GB, free: 152.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.8546, allocations: 3.906 kB / 0.739 GB, free: 152.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/0.8546, allocations: 8.203 kB / 0.739 GB, free: 152.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01388/0.8685, allocations: 9.369 MB / 0.7481 GB, free: 147.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/0.8685, allocations: 3.531 kB / 0.7481 GB, free: 147.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009786/0.8695, allocations: 256.5 kB / 0.7484 GB, free: 147.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002697/0.8722, allocations: 1.062 MB / 0.7494 GB, free: 147.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001232/0.8723, allocations: 51.64 kB / 0.7495 GB, free: 147.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003754/0.8761, allocations: 4.799 MB / 0.7542 GB, free: 142.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006021/0.8767, allocations: 1.45 MB / 0.7556 GB, free: 140.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006124/0.8828, allocations: 5.331 MB / 0.7608 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007278/0.8836, allocations: 392.6 kB / 0.7611 GB, free: 135 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000302/0.8839, allocations: 40.17 kB / 0.7612 GB, free: 135 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/0.8851, allocations: 133 kB / 0.7613 GB, free: 134.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/0.8853, allocations: 107.3 kB / 0.7614 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.816e-05/0.8854, allocations: 57.17 kB / 0.7615 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002576/0.888, allocations: 2.355 MB / 0.7638 GB, free: 132.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/0.888, allocations: 0 / 0.7638 GB, free: 132.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004068/0.8921, allocations: 1.032 MB / 0.7648 GB, free: 131.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * 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 (126): * Single equations (assignments): 119 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003548/0.8925, allocations: 173.9 kB / 0.7649 GB, free: 131.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007227/0.8997, allocations: 5.467 MB / 0.7703 GB, free: 125.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.8997, allocations: 0 / 0.7703 GB, free: 125.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003076/0.9028, allocations: 2.067 MB / 0.7723 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0025/0.9053, allocations: 452.2 kB / 0.7727 GB, free: 123.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01335/0.9187, allocations: 11.44 MB / 0.7839 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002284/0.921, allocations: 3.183 MB / 0.787 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000778/0.9218, allocations: 283.4 kB / 0.7873 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.122e-06/0.9218, allocations: 0 / 0.7873 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of Templates: time 0.2892/1.211, allocations: 128.4 MB / 0.9127 GB, free: 168.4 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.BodyShape.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.BodyShape.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.BodyShape.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.BodyShape.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.BodyShape.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.BodyShape --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.BodyShape.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.BodyShape_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/BodyShape/BodyShape.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.BodyShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches