Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.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.FreeMotionScalarInit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.angle_d_1|freeMotionScalarInit.angle_d_2|freeMotionScalarInit.angle_d_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.FreeMotionScalarInit") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.angle_d_1|freeMotionScalarInit.angle_d_2|freeMotionScalarInit.angle_d_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.FreeMotionScalarInit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009151/0.0009152, allocations: 200 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.353/1.353, allocations: 226.6 MB / 243.4 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007745/0.0007745, allocations: 98.47 kB / 295.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3212/0.3212, allocations: 44.81 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002756/0.0002758, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3696/0.3699, allocations: 62.96 MB / 0.5159 GB, free: 37.24 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit): time 0.02279/0.3927, allocations: 30.45 MB / 0.5456 GB, free: 15.51 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01577/0.4085, allocations: 7.174 MB / 0.5526 GB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006954/0.4155, allocations: 140.3 kB / 0.5528 GB, free: 10.64 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004906/0.4205, allocations: 1.526 MB / 0.5542 GB, free: 10.09 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01449/0.435, allocations: 4.521 MB / 0.5587 GB, free: 8.262 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00269/0.4377, allocations: 458 kB / 0.5591 GB, free: 8.094 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007099/0.4448, allocations: 4.297 MB / 0.5633 GB, free: 6.445 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005602/0.4504, allocations: 3.651 MB / 0.5669 GB, free: 4.281 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002463/0.4529, allocations: 1.09 MB / 0.5679 GB, free: 3.734 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002288/0.4552, allocations: 1.756 MB / 0.5696 GB, free: 2.227 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004501/0.4557, allocations: 140 kB / 0.5698 GB, free: 2.09 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001911/0.4576, allocations: 1.006 MB / 0.5708 GB, free: 1.082 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001315/0.459, allocations: 1.586 MB / 0.5723 GB, free: 15.49 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001793/0.4608, allocations: 1.838 MB / 0.5741 GB, free: 13.64 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005494/0.4663, allocations: 5.366 MB / 0.5793 GB, free: 8.258 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.4663, allocations: 0 / 0.5793 GB, free: 8.258 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.188e-06/0.4663, allocations: 7.984 kB / 0.5793 GB, free: 8.25 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000183/0.4665, allocations: 0 / 0.5793 GB, free: 8.25 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1651 * Number of variables: 1651 Notification: Performance of Generate backend data structure: time 0.009591/0.4761, allocations: 4.037 MB / 0.5833 GB, free: 4.145 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/0.4762, allocations: 8.031 kB / 0.5833 GB, free: 4.137 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01045/0.4866, allocations: 3.212 MB / 0.5864 GB, free: 0.9141 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004599/0.4913, allocations: 2.045 MB / 0.5884 GB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001845/0.4915, allocations: 229.7 kB / 0.5886 GB, free: 14.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007725/0.4923, allocations: 287.7 kB / 0.5889 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01745/0.5097, allocations: 11.12 MB / 0.5998 GB, free: 2.762 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.224e-05/0.5099, allocations: 23.81 kB / 0.5998 GB, free: 2.738 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004297/0.5103, allocations: 135.8 kB / 0.5999 GB, free: 2.605 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004049/0.5144, allocations: 2.558 MB / 0.6024 GB, free: 44 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02046/0.5349, allocations: 10.35 MB / 0.6125 GB, free: 5.668 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05291/0.5878, allocations: 35.53 MB / 0.6472 GB, free: 1.297 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007892/0.5958, allocations: 4.273 MB / 0.6514 GB, free: 12.79 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002828/0.5986, allocations: 2.114 MB / 0.6535 GB, free: 10.68 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00109/0.5998, allocations: 1.319 MB / 0.6548 GB, free: 9.137 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.502e-05/0.5998, allocations: 60.5 kB / 0.6548 GB, free: 9.07 MB / 474.7 MB Notification: Performance of pre-optimization done (n=235): time 5.811e-06/0.5998, allocations: 0 / 0.6548 GB, free: 9.07 MB / 474.7 MB Notification: Performance of matching and sorting (n=256): time 0.03744/0.6373, allocations: 13.69 MB / 0.6682 GB, free: 11.32 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.6374, allocations: 73.41 kB / 0.6683 GB, free: 11.23 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004651/0.642, allocations: 2.75 MB / 0.6709 GB, free: 8.465 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004041/0.6425, allocations: 53.7 kB / 0.671 GB, free: 8.406 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001973/0.6444, allocations: 2.864 MB / 0.6738 GB, free: 5.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001122/0.6456, allocations: 0.9443 MB / 0.6747 GB, free: 4.543 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004651/0.6461, allocations: 108 kB / 0.6748 GB, free: 4.438 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004759/0.6465, allocations: 0.5499 MB / 0.6754 GB, free: 3.879 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003695/0.6503, allocations: 2.291 MB / 0.6776 GB, free: 1.582 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2542/0.9045, allocations: 5.375 MB / 0.6828 GB, free: 124.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008554/0.9131, allocations: 8.435 MB / 0.6911 GB, free: 118.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001253/0.9132, allocations: 29.5 kB / 0.6911 GB, free: 118.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.01417/0.9274, allocations: 8.376 MB / 0.6993 GB, free: 115.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.404e-05/0.9275, allocations: 52.16 kB / 0.6993 GB, free: 115.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001418/0.9277, allocations: 106.2 kB / 0.6994 GB, free: 115.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003242/0.9309, allocations: 1.033 MB / 0.7004 GB, free: 115.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004471/0.9354, allocations: 1.304 MB / 0.7017 GB, free: 115 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002588/0.938, allocations: 2.466 MB / 0.7041 GB, free: 113.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003682/0.9417, allocations: 306.5 kB / 0.7044 GB, free: 113.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006947/0.9424, allocations: 326.8 kB / 0.7047 GB, free: 113.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 489 * Number of states: 0 () * Number of discrete variables: 26 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 (705): * Single equations (assignments): 696 * 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 prepare postOptimizeDAE: time 0.00392/0.9464, allocations: 2.21 MB / 0.7069 GB, free: 112.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004773/0.9468, allocations: 277.5 kB / 0.7072 GB, free: 112.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009184/0.956, allocations: 4.942 MB / 0.712 GB, free: 110.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.089e-05/0.9561, allocations: 47.75 kB / 0.712 GB, free: 110.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/0.9562, allocations: 2 kB / 0.712 GB, free: 110.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.728e-05/0.9562, allocations: 10.41 kB / 0.712 GB, free: 110.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01868/0.9749, allocations: 11.31 MB / 0.7231 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.556e-05/0.9749, allocations: 11.91 kB / 0.7231 GB, free: 106.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001429/0.9764, allocations: 414.5 kB / 0.7235 GB, free: 106.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002803/0.9792, allocations: 0.9019 MB / 0.7244 GB, free: 106.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002441/0.9794, allocations: 63.11 kB / 0.7244 GB, free: 106.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001916/0.9814, allocations: 2.273 MB / 0.7267 GB, free: 105.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.603e-06/0.9814, allocations: 11.47 kB / 0.7267 GB, free: 105.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009733/0.9911, allocations: 7.352 MB / 0.7338 GB, free: 99.97 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008335/0.992, allocations: 330.9 kB / 0.7342 GB, free: 99.65 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000396/0.9924, allocations: 40 kB / 0.7342 GB, free: 99.61 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.9935, allocations: 137.2 kB / 0.7343 GB, free: 99.52 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002679/0.9938, allocations: 154.8 kB / 0.7345 GB, free: 99.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/0.9939, allocations: 75.27 kB / 0.7345 GB, free: 99.36 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002147/0.9961, allocations: 1.67 MB / 0.7362 GB, free: 97.98 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9961, allocations: 1.219 kB / 0.7362 GB, free: 97.98 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004283/1, allocations: 0.979 MB / 0.7371 GB, free: 97.01 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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,freeMotionScalarInit.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_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 (206): * Single equations (assignments): 197 * 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.0004614/1.001, allocations: 181.9 kB / 0.7373 GB, free: 96.83 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008693/1.01, allocations: 6.03 MB / 0.7432 GB, free: 91.33 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.226e-05/1.01, allocations: 0.9844 kB / 0.7432 GB, free: 91.33 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003881/1.013, allocations: 2.542 MB / 0.7457 GB, free: 88.73 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004812/1.018, allocations: 425.9 kB / 0.7461 GB, free: 88.33 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01666/1.035, allocations: 13.17 MB / 0.759 GB, free: 75.02 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002903/1.038, allocations: 3.435 MB / 0.7623 GB, free: 71.55 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001153/1.039, allocations: 271.4 kB / 0.7626 GB, free: 71.29 MB / 490.7 MB Notification: Performance of SimCode: time 1.102e-06/1.039, allocations: 0 / 0.7626 GB, free: 71.29 MB / 490.7 MB Notification: Performance of Templates: time 0.3676/1.407, allocations: 116.5 MB / 0.8763 GB, free: 166.7 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit/FreeMotionScalarInit.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches