Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity.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.Frames.AngularVelocity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.body.Q.1.|body.body.Q.2.|body.body.Q.3.|body.body.Q.4.|body.body.frame_a.r_0.1.|body.body.frame_a.r_0.2.|body.body.frame_a.r_0.3.|body.body.w_a.1.|body.body.w_a.2.|body.body.w_a.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity") translateModel(ModelicaTest.MultiBody.Frames.AngularVelocity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.body.Q.1.|body.body.Q.2.|body.body.Q.3.|body.body.Q.4.|body.body.frame_a.r_0.1.|body.body.frame_a.r_0.2.|body.body.frame_a.r_0.3.|body.body.w_a.1.|body.body.w_a.2.|body.body.w_a.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009564/0.0009564, allocations: 202.1 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, 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.0007872/0.0007874, allocations: 104.3 kB / 295.1 MB, free: 10.06 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1932/0.1932, allocations: 44.84 MB / 392 MB, free: 9.324 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002966/0.0002968, allocations: 8 kB / 464.7 MB, free: 49.76 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1041, allocations: 62.97 MB / 0.5153 GB, free: 2.754 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Frames.AngularVelocity): time 0.2255/0.3297, allocations: 45.05 MB / 0.5593 GB, free: 13.82 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02488/0.3546, allocations: 10.03 MB / 0.5691 GB, free: 6.469 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009661/0.3643, allocations: 211.4 kB / 0.5693 GB, free: 6.262 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006919/0.3713, allocations: 2.325 MB / 0.5716 GB, free: 3.926 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01904/0.3903, allocations: 6.897 MB / 0.5783 GB, free: 13 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002933/0.3933, allocations: 0.5851 MB / 0.5789 GB, free: 12.42 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.005814/0.3991, allocations: 4.375 MB / 0.5832 GB, free: 8.035 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00668/0.4058, allocations: 4.583 MB / 0.5876 GB, free: 3.391 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002301/0.4081, allocations: 1.203 MB / 0.5888 GB, free: 2.184 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002813/0.411, allocations: 1.814 MB / 0.5906 GB, free: 372 kB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006887/0.4117, allocations: 136 kB / 0.5907 GB, free: 236 kB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00215/0.4138, allocations: 0.8933 MB / 0.5916 GB, free: 15.34 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001873/0.4157, allocations: 1.636 MB / 0.5932 GB, free: 13.7 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0012/0.4169, allocations: 0.8233 MB / 0.594 GB, free: 12.86 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005414/0.4224, allocations: 5.352 MB / 0.5992 GB, free: 7.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.4224, allocations: 4 kB / 0.5992 GB, free: 7.496 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4224, allocations: 0 / 0.5992 GB, free: 7.496 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002386/0.4226, allocations: 0 / 0.5992 GB, free: 7.496 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: 1504 * Number of variables: 1504 Notification: Performance of Generate backend data structure: time 0.007389/0.43, allocations: 3.847 MB / 0.603 GB, free: 3.582 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.4301, allocations: 12.03 kB / 0.603 GB, free: 3.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006648/0.4367, allocations: 2.007 MB / 0.605 GB, free: 1.555 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004118/0.4409, allocations: 2.095 MB / 0.607 GB, free: 15.4 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000201/0.4411, allocations: 246.3 kB / 0.6072 GB, free: 15.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001072/0.4422, allocations: 411.7 kB / 0.6076 GB, free: 14.75 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01529/0.4575, allocations: 9.891 MB / 0.6173 GB, free: 4.195 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-05/0.4576, allocations: 39.69 kB / 0.6173 GB, free: 4.156 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004412/0.458, allocations: 151.9 kB / 0.6175 GB, free: 4.008 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002525/0.4606, allocations: 1.826 MB / 0.6193 GB, free: 2.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01393/0.4745, allocations: 8.179 MB / 0.6272 GB, free: 9.98 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04325/0.5178, allocations: 38.79 MB / 0.6651 GB, free: 2.02 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008479/0.5263, allocations: 3.673 MB / 0.6687 GB, free: 14.19 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002021/0.5284, allocations: 1.619 MB / 0.6703 GB, free: 12.56 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01008/0.5385, allocations: 7.845 MB / 0.6779 GB, free: 4.285 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.175e-05/0.5385, allocations: 51.56 kB / 0.678 GB, free: 4.227 MB / 490.7 MB Notification: Performance of pre-optimization done (n=141): time 3.887e-06/0.5386, allocations: 0 / 0.678 GB, free: 4.227 MB / 490.7 MB Notification: Performance of matching and sorting (n=148): time 0.02686/0.5654, allocations: 12.33 MB / 0.69 GB, free: 7.715 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001196/0.5666, allocations: 1.604 MB / 0.6916 GB, free: 5.941 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00506/0.5717, allocations: 3.821 MB / 0.6953 GB, free: 2.133 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001953/0.5719, allocations: 49.69 kB / 0.6954 GB, free: 2.078 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001935/0.5739, allocations: 3.035 MB / 0.6984 GB, free: 14.99 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006232/0.5745, allocations: 0.6058 MB / 0.6989 GB, free: 14.38 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002821/0.5748, allocations: 116 kB / 0.6991 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003308/0.5751, allocations: 0.5574 MB / 0.6996 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002813/0.578, allocations: 2.01 MB / 0.7016 GB, free: 11.69 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004889/0.5829, allocations: 5.645 MB / 0.7071 GB, free: 4.215 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004249/0.5871, allocations: 3.29 MB / 0.7103 GB, free: 0.9258 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-05/0.5872, allocations: 36 kB / 0.7103 GB, free: 0.8906 MB / 0.5105 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.2036/0.7909, allocations: 9.178 MB / 0.7193 GB, free: 161 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.361e-05/0.791, allocations: 63.75 kB / 0.7193 GB, free: 161 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01031/0.8013, allocations: 3.634 MB / 0.7229 GB, free: 160.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009989/0.8113, allocations: 2.33 MB / 0.7252 GB, free: 159.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004009/0.8154, allocations: 1.326 MB / 0.7265 GB, free: 159.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008321/0.8237, allocations: 6.901 MB / 0.7332 GB, free: 155.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003891/0.8276, allocations: 400.2 kB / 0.7336 GB, free: 155.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006179/0.8283, allocations: 369.5 kB / 0.7339 GB, free: 155.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 41 (FrameTorque1.arrow.arrowLine.twoHeadedArrow,FrameTorque1.arrow.headAtOrigin,FrameTorque1.color[3],FrameTorque1.color[2],FrameTorque1.color[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 (716): * Single equations (assignments): 707 * 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.002799/0.8311, allocations: 2.026 MB / 0.7359 GB, free: 154.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004292/0.8315, allocations: 323.5 kB / 0.7362 GB, free: 154.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004638/0.8361, allocations: 2.935 MB / 0.7391 GB, free: 153.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003737/0.8399, allocations: 2.497 MB / 0.7415 GB, free: 153 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.8399, allocations: 1.188 kB / 0.7415 GB, free: 153 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.464e-05/0.8399, allocations: 9.844 kB / 0.7415 GB, free: 153 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/0.8511, allocations: 8.522 MB / 0.7499 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.8512, allocations: 4 kB / 0.7499 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000954/0.8521, allocations: 243.6 kB / 0.7501 GB, free: 147.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002464/0.8546, allocations: 1.033 MB / 0.7511 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.8547, allocations: 39.42 kB / 0.7511 GB, free: 146 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003944/0.8587, allocations: 5.016 MB / 0.756 GB, free: 140.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006046/0.8593, allocations: 1.48 MB / 0.7575 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005932/0.8652, allocations: 5.174 MB / 0.7625 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005898/0.8658, allocations: 392.7 kB / 0.7629 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002756/0.8661, allocations: 36.81 kB / 0.763 GB, free: 133.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001188/0.8673, allocations: 131.8 kB / 0.7631 GB, free: 133.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.8675, allocations: 86.11 kB / 0.7632 GB, free: 133.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.239e-05/0.8676, allocations: 47.97 kB / 0.7632 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002444/0.87, allocations: 2.365 MB / 0.7655 GB, free: 131.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.41e-07/0.8701, allocations: 0 / 0.7655 GB, free: 131.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003538/0.8736, allocations: 1.04 MB / 0.7665 GB, free: 130.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[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 (114): * Single equations (assignments): 107 * 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.0003032/0.8739, allocations: 158 kB / 0.7667 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00682/0.8807, allocations: 5.503 MB / 0.7721 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.8808, allocations: 3.938 kB / 0.7721 GB, free: 124.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003016/0.8838, allocations: 2.135 MB / 0.7741 GB, free: 122.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001851/0.8856, allocations: 431.6 kB / 0.7746 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/0.8969, allocations: 11.37 MB / 0.7857 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002271/0.8992, allocations: 3.172 MB / 0.7888 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007348/0.8999, allocations: 271.4 kB / 0.789 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of SimCode: time 9.92e-07/0.8999, allocations: 4 kB / 0.789 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.2921/1.192, allocations: 128.2 MB / 0.9142 GB, free: 170.5 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Frames/AngularVelocity/AngularVelocity.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Frames.AngularVelocity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches