Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.Joints.FreeMotionScalarInit3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.w_a.1.|body.w_a.2.|body.w_a.3.|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.r_rel_a_1|freeMotionScalarInit.r_rel_a_2|freeMotionScalarInit.r_rel_a_3|freeMotionScalarInit.v_rel_a_1|freeMotionScalarInit.v_rel_a_2|freeMotionScalarInit.v_rel_a_3",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.w_a.1.|body.w_a.2.|body.w_a.3.|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.r_rel_a_1|freeMotionScalarInit.r_rel_a_2|freeMotionScalarInit.r_rel_a_3|freeMotionScalarInit.v_rel_a_1|freeMotionScalarInit.v_rel_a_2|freeMotionScalarInit.v_rel_a_3",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009737/0.0009737, allocations: 199.5 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 226.5 MB / 243.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008825/0.0008826, allocations: 88.72 kB / 295.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3227/0.3227, allocations: 44.82 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003112/0.0003113, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.336, allocations: 62.96 MB / 0.5159 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.02701/0.3631, allocations: 38.02 MB / 0.553 GB, free: 10.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01761/0.3807, allocations: 8.643 MB / 0.5614 GB, free: 4.246 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00654/0.3873, allocations: 174.7 kB / 0.5616 GB, free: 4.219 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005508/0.3929, allocations: 1.911 MB / 0.5635 GB, free: 3.539 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01673/0.4096, allocations: 5.611 MB / 0.569 GB, free: 1.129 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002888/0.4125, allocations: 0.5363 MB / 0.5695 GB, free: 0.7773 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006972/0.4195, allocations: 4.782 MB / 0.5741 GB, free: 13.64 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006451/0.426, allocations: 4.588 MB / 0.5786 GB, free: 8.992 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002586/0.4286, allocations: 1.23 MB / 0.5798 GB, free: 7.758 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00284/0.4315, allocations: 1.955 MB / 0.5817 GB, free: 5.797 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00058/0.4321, allocations: 160 kB / 0.5819 GB, free: 5.641 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00227/0.4344, allocations: 1.057 MB / 0.5829 GB, free: 4.582 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001604/0.436, allocations: 1.792 MB / 0.5847 GB, free: 2.785 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001974/0.438, allocations: 2.067 MB / 0.5867 GB, free: 0.6992 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006779/0.4447, allocations: 6.11 MB / 0.5927 GB, free: 10.57 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.187e-06/0.4448, allocations: 0 / 0.5927 GB, free: 10.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.687e-06/0.4448, allocations: 0 / 0.5927 GB, free: 10.57 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002814/0.4451, allocations: 3.938 kB / 0.5927 GB, free: 10.57 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: 1840 * Number of variables: 1840 Notification: Performance of Generate backend data structure: time 0.01158/0.4567, allocations: 4.446 MB / 0.597 GB, free: 6.055 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.4568, allocations: 12.03 kB / 0.597 GB, free: 6.043 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01024/0.467, allocations: 3.274 MB / 0.6002 GB, free: 2.758 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004983/0.472, allocations: 2.262 MB / 0.6024 GB, free: 456 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001939/0.4723, allocations: 267 kB / 0.6027 GB, free: 188 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001048/0.4733, allocations: 355.7 kB / 0.603 GB, free: 15.83 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01994/0.4933, allocations: 12.32 MB / 0.615 GB, free: 3.051 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001191/0.4934, allocations: 27.72 kB / 0.6151 GB, free: 3.023 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004659/0.4939, allocations: 159.8 kB / 0.6152 GB, free: 2.867 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00393/0.4978, allocations: 2.7 MB / 0.6179 GB, free: 168 kB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.022/0.5199, allocations: 11.25 MB / 0.6288 GB, free: 4.902 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05442/0.5743, allocations: 39.54 MB / 0.6675 GB, free: 12.46 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009367/0.5838, allocations: 4.95 MB / 0.6723 GB, free: 7.27 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0031/0.5869, allocations: 2.359 MB / 0.6746 GB, free: 4.902 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2533/0.8402, allocations: 6.735 MB / 0.6812 GB, free: 128.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.221e-05/0.8403, allocations: 51.03 kB / 0.6812 GB, free: 128.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=226): time 6.462e-06/0.8403, allocations: 0 / 0.6812 GB, free: 128.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=235): time 0.03175/0.872, allocations: 16.13 MB / 0.697 GB, free: 123.6 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.8721, allocations: 71.97 kB / 0.6971 GB, free: 123.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004158/0.8763, allocations: 3.125 MB / 0.7001 GB, free: 122.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001695/0.8765, allocations: 53.86 kB / 0.7002 GB, free: 122.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001631/0.8781, allocations: 3.23 MB / 0.7033 GB, free: 119.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007482/0.8789, allocations: 0.887 MB / 0.7042 GB, free: 119.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002724/0.8792, allocations: 117.1 kB / 0.7043 GB, free: 119.1 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005165/0.8797, allocations: 0.5605 MB / 0.7048 GB, free: 118.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004835/0.8845, allocations: 2.346 MB / 0.7071 GB, free: 117.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006041/0.8906, allocations: 5.67 MB / 0.7127 GB, free: 112.7 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01018/0.9008, allocations: 8.722 MB / 0.7212 GB, free: 105.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002127/0.9011, allocations: 37.97 kB / 0.7212 GB, free: 105.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=795) (initialization): time 0.01501/0.9161, allocations: 8.789 MB / 0.7298 GB, free: 102.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.799e-05/0.9162, allocations: 55.06 kB / 0.7299 GB, free: 102.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001221/0.9163, allocations: 115.3 kB / 0.73 GB, free: 102.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002871/0.9192, allocations: 1.129 MB / 0.7311 GB, free: 102 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003779/0.923, allocations: 1.352 MB / 0.7324 GB, free: 100.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004576/0.9276, allocations: 4.579 MB / 0.7369 GB, free: 96.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004263/0.9319, allocations: 322.3 kB / 0.7372 GB, free: 96.47 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007786/0.9327, allocations: 348.4 kB / 0.7375 GB, free: 96.13 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 527 * Number of states: 0 () * Number of discrete variables: 32 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (734): * Single equations (assignments): 726 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 5} Notification: Performance of prepare postOptimizeDAE: time 0.004843/0.9375, allocations: 2.369 MB / 0.7398 GB, free: 94.08 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007412/0.9383, allocations: 296.2 kB / 0.7401 GB, free: 93.79 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006167/0.9444, allocations: 4.38 MB / 0.7444 GB, free: 90.13 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.077e-05/0.9445, allocations: 46.72 kB / 0.7444 GB, free: 90.09 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.9445, allocations: 0 / 0.7444 GB, free: 90.09 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.771e-05/0.9446, allocations: 19.64 kB / 0.7444 GB, free: 90.08 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01551/0.9601, allocations: 10.37 MB / 0.7546 GB, free: 79.83 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.619e-05/0.9602, allocations: 8.688 kB / 0.7546 GB, free: 79.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001484/0.9616, allocations: 375.5 kB / 0.7549 GB, free: 79.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00172/0.9634, allocations: 0.6773 MB / 0.7556 GB, free: 78.77 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002502/0.9636, allocations: 40.86 kB / 0.7556 GB, free: 78.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002111/0.9658, allocations: 2.424 MB / 0.758 GB, free: 76.17 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/0.9658, allocations: 11.94 kB / 0.758 GB, free: 76.16 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008062/0.9739, allocations: 6.685 MB / 0.7645 GB, free: 69.38 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/0.9751, allocations: 353.3 kB / 0.7649 GB, free: 69.02 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003561/0.9754, allocations: 52.55 kB / 0.7649 GB, free: 68.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.9766, allocations: 133.5 kB / 0.7651 GB, free: 68.84 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002938/0.9769, allocations: 133.6 kB / 0.7652 GB, free: 68.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000159/0.977, allocations: 68.94 kB / 0.7652 GB, free: 68.64 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002655/0.9797, allocations: 1.884 MB / 0.7671 GB, free: 66.75 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.9797, allocations: 0 / 0.7671 GB, free: 66.75 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005017/0.9847, allocations: 1.054 MB / 0.7681 GB, free: 65.71 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,body.w_a[1],body.w_a[2],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 (187): * Single equations (assignments): 178 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * 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.0005353/0.9853, allocations: 189.1 kB / 0.7683 GB, free: 65.52 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008297/0.9936, allocations: 5.743 MB / 0.7739 GB, free: 59.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/0.9937, allocations: 4 kB / 0.7739 GB, free: 59.79 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003229/0.9969, allocations: 2.381 MB / 0.7762 GB, free: 57.36 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00446/1.001, allocations: 465.2 kB / 0.7767 GB, free: 56.91 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0191/1.021, allocations: 13.79 MB / 0.7901 GB, free: 43.03 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003106/1.024, allocations: 3.678 MB / 0.7937 GB, free: 39.32 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001074/1.025, allocations: 287.4 kB / 0.794 GB, free: 39.04 MB / 490.7 MB Notification: Performance of SimCode: time 7.11e-07/1.025, allocations: 0 / 0.794 GB, free: 39.04 MB / 490.7 MB Notification: Performance of Templates: time 0.4189/1.444, allocations: 114.8 MB / 0.9062 GB, free: 154.5 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit3/FreeMotionScalarInit3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches