Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.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_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_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009674/0.0009674, allocations: 99.02 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001308/0.001307, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 227.7 MB / 246.4 MB, free: 9.789 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2188/0.2188, allocations: 46.2 MB / 344.8 MB, free: 11.29 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004598/0.0004598, allocations: 8.219 kB / 418.8 MB, free: 20.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.1762, allocations: 63.56 MB / 482.4 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.03939/0.2156, allocations: 34.48 MB / 0.5048 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3308/0.5465, allocations: 7.911 MB / 0.5125 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007348/0.5539, allocations: 159.3 kB / 0.5126 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006074/0.56, allocations: 1.721 MB / 0.5143 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01637/0.5764, allocations: 5.028 MB / 0.5192 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003369/0.5798, allocations: 498.5 kB / 0.5197 GB, free: 8.926 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009404/0.5892, allocations: 4.584 MB / 0.5242 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008916/0.5982, allocations: 4.249 MB / 0.5283 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003677/0.6019, allocations: 1.207 MB / 0.5295 GB, free: 6.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003792/0.6057, allocations: 1.926 MB / 0.5314 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001151/0.6069, allocations: 155.9 kB / 0.5315 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003012/0.6099, allocations: 0.9052 MB / 0.5324 GB, free: 5.332 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002622/0.6125, allocations: 1.742 MB / 0.5341 GB, free: 4.727 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001873/0.6144, allocations: 0.895 MB / 0.535 GB, free: 4.504 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00675/0.6212, allocations: 5.96 MB / 0.5408 GB, free: 1.289 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.6212, allocations: 0 / 0.5408 GB, free: 1.289 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.6212, allocations: 0 / 0.5408 GB, free: 1.289 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003678/0.6216, allocations: 0 / 0.5408 GB, free: 1.289 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: 1811 * Number of variables: 1811 Notification: Performance of Generate backend data structure: time 0.01254/0.6342, allocations: 4.436 MB / 0.5452 GB, free: 14.62 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.6342, allocations: 9.969 kB / 0.5452 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01164/0.6459, allocations: 3.263 MB / 0.5484 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006848/0.6528, allocations: 2.217 MB / 0.5505 GB, free: 9.922 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003464/0.6532, allocations: 258.4 kB / 0.5508 GB, free: 9.785 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002209/0.6554, allocations: 346.4 kB / 0.5511 GB, free: 9.562 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03086/0.6863, allocations: 12.16 MB / 0.563 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002537/0.6866, allocations: 35.66 kB / 0.563 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001745/0.6884, allocations: 158.7 kB / 0.5632 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004497/0.6929, allocations: 2.642 MB / 0.5657 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02538/0.7183, allocations: 11.17 MB / 0.5766 GB, free: 1.918 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07394/0.7923, allocations: 39.08 MB / 0.6148 GB, free: 10.25 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01051/0.8028, allocations: 4.965 MB / 0.6197 GB, free: 5.043 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003591/0.8065, allocations: 2.362 MB / 0.622 GB, free: 2.672 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01152/0.818, allocations: 6.833 MB / 0.6286 GB, free: 11.51 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.348e-05/0.8181, allocations: 48.56 kB / 0.6287 GB, free: 11.45 MB / 478.1 MB Notification: Performance of pre-optimization done (n=226): time 5.801e-06/0.8181, allocations: 5.969 kB / 0.6287 GB, free: 11.45 MB / 478.1 MB Notification: Performance of matching and sorting (n=235): time 0.03976/0.8579, allocations: 16.17 MB / 0.6445 GB, free: 11.14 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.568e-05/0.858, allocations: 73.41 kB / 0.6445 GB, free: 11.05 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005987/0.864, allocations: 3.095 MB / 0.6476 GB, free: 7.945 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005027/0.8645, allocations: 61.7 kB / 0.6476 GB, free: 7.879 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002701/0.8672, allocations: 3.191 MB / 0.6507 GB, free: 4.703 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001397/0.8686, allocations: 0.8837 MB / 0.6516 GB, free: 3.828 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005714/0.8692, allocations: 116 kB / 0.6517 GB, free: 3.715 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000595/0.8698, allocations: 0.5661 MB / 0.6523 GB, free: 3.141 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00437/0.8742, allocations: 2.354 MB / 0.6546 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007072/0.8813, allocations: 5.673 MB / 0.6601 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006199/0.8875, allocations: 3.634 MB / 0.6637 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001064/0.8876, allocations: 32 kB / 0.6637 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of matching and sorting (n=795) (initialization): time 0.01865/0.9063, allocations: 8.816 MB / 0.6723 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001488/0.9065, allocations: 52.94 kB / 0.6724 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002351/0.9067, allocations: 116 kB / 0.6725 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003458/0.9102, allocations: 1.149 MB / 0.6736 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004899/0.9151, allocations: 1.361 MB / 0.6749 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009204/0.9244, allocations: 6.501 MB / 0.6813 GB, free: 3.531 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00514/0.9295, allocations: 331.6 kB / 0.6816 GB, free: 3.207 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001445/0.931, allocations: 350.8 kB / 0.6819 GB, free: 2.867 MB / 0.5137 GB 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.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.006094/0.9371, allocations: 2.334 MB / 0.6842 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007636/0.9379, allocations: 296.2 kB / 0.6845 GB, free: 232 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007855/0.9457, allocations: 4.386 MB / 0.6888 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.15e-05/0.9458, allocations: 47.94 kB / 0.6888 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.9458, allocations: 0 / 0.6888 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.208e-05/0.9459, allocations: 7.969 kB / 0.6888 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02009/0.966, allocations: 10.31 MB / 0.6989 GB, free: 1.371 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/0.966, allocations: 4.281 kB / 0.6989 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001629/0.9677, allocations: 379.4 kB / 0.6992 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001983/0.9697, allocations: 0.6794 MB / 0.6999 GB, free: 316 kB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002333/0.9699, allocations: 55.88 kB / 0.7 GB, free: 260 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002905/0.9728, allocations: 2.435 MB / 0.7023 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.9728, allocations: 4 kB / 0.7023 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01019/0.983, allocations: 6.71 MB / 0.7089 GB, free: 6.871 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/0.9842, allocations: 345.2 kB / 0.7092 GB, free: 6.512 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004434/0.9847, allocations: 47.94 kB / 0.7093 GB, free: 6.465 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.9859, allocations: 139.5 kB / 0.7094 GB, free: 6.332 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002776/0.9862, allocations: 129.7 kB / 0.7095 GB, free: 6.207 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001507/0.9863, allocations: 63.98 kB / 0.7096 GB, free: 6.145 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003077/0.9894, allocations: 1.871 MB / 0.7114 GB, free: 4.273 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.7e-07/0.9894, allocations: 0 / 0.7114 GB, free: 4.273 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00508/0.9945, allocations: 1.042 MB / 0.7124 GB, free: 3.234 MB / 0.545 GB 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.0005094/0.9951, allocations: 181.7 kB / 0.7126 GB, free: 3.051 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2902/1.285, allocations: 5.89 MB / 0.7184 GB, free: 163.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/1.285, allocations: 0.8438 kB / 0.7184 GB, free: 163.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00442/1.29, allocations: 2.389 MB / 0.7207 GB, free: 163.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002443/1.292, allocations: 444.2 kB / 0.7211 GB, free: 163.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02181/1.314, allocations: 13.15 MB / 0.734 GB, free: 157.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00464/1.319, allocations: 3.632 MB / 0.7375 GB, free: 156.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00506/1.324, allocations: 2.019 MB / 0.7395 GB, free: 156.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007698/1.325, allocations: 236.1 kB / 0.7397 GB, free: 156.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.212e-06/1.325, allocations: 0.7656 kB / 0.7397 GB, free: 156.7 MB / 0.545 GB Notification: Performance of Templates: time 0.05868/1.383, allocations: 34.14 MB / 0.773 GB, free: 130.6 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches