Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.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.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001373/0.001373, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001213/0.001213, allocations: 104.5 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4827/0.4827, allocations: 44.84 MB / 392.7 MB, free: 34.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001152, allocations: 67.89 kB / 465.5 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3941/0.3953, allocations: 62.02 MB / 0.5152 GB, free: 37.69 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.06044/0.4558, allocations: 74.24 MB / 0.5877 GB, free: 14.97 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03832/0.4942, allocations: 14.96 MB / 0.6023 GB, free: 104 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01987/0.5141, allocations: 327.3 kB / 0.6026 GB, free: 15.78 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008925/0.523, allocations: 4.145 MB / 0.6066 GB, free: 11.62 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006944/0.5301, allocations: 2.199 MB / 0.6088 GB, free: 9.418 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00246/0.5325, allocations: 0.9909 MB / 0.6097 GB, free: 8.426 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.01226/0.5448, allocations: 10.06 MB / 0.6196 GB, free: 14.34 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006854/0.5517, allocations: 5.005 MB / 0.6245 GB, free: 9.27 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003844/0.5556, allocations: 1.989 MB / 0.6264 GB, free: 7.273 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005167/0.5608, allocations: 3.279 MB / 0.6296 GB, free: 3.984 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001208/0.562, allocations: 340 kB / 0.6299 GB, free: 3.652 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002995/0.565, allocations: 1.28 MB / 0.6312 GB, free: 2.371 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003117/0.5682, allocations: 2.661 MB / 0.6338 GB, free: 15.7 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004905/0.5731, allocations: 3.033 MB / 0.6367 GB, free: 12.65 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01282/0.5859, allocations: 9.513 MB / 0.646 GB, free: 3.105 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.586, allocations: 0 / 0.646 GB, free: 3.105 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.586, allocations: 0 / 0.646 GB, free: 3.105 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004412/0.5864, allocations: 0 / 0.646 GB, free: 3.105 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.01926/0.6057, allocations: 6.953 MB / 0.6528 GB, free: 12.07 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.6058, allocations: 12.03 kB / 0.6528 GB, free: 12.06 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02665/0.6324, allocations: 3.339 MB / 0.6561 GB, free: 8.707 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01225/0.6447, allocations: 4.345 MB / 0.6603 GB, free: 4.277 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003258/0.6451, allocations: 332.8 kB / 0.6606 GB, free: 3.949 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001866/0.647, allocations: 447.6 kB / 0.6611 GB, free: 3.512 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02688/0.6739, allocations: 13.28 MB / 0.674 GB, free: 5.359 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003064/0.6742, allocations: 71.33 kB / 0.6741 GB, free: 5.289 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001022/0.6753, allocations: 203.8 kB / 0.6743 GB, free: 5.09 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00458/0.6799, allocations: 2.597 MB / 0.6768 GB, free: 2.492 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.315/0.9949, allocations: 11.54 MB / 0.6881 GB, free: 125.6 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06618/1.061, allocations: 53.44 MB / 0.7403 GB, free: 88.86 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01202/1.073, allocations: 5.66 MB / 0.7458 GB, free: 85.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003382/1.077, allocations: 3.503 MB / 0.7492 GB, free: 83.6 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005202/1.077, allocations: 0.6936 MB / 0.7499 GB, free: 82.81 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/1.077, allocations: 60.55 kB / 0.75 GB, free: 82.75 MB / 490.7 MB Notification: Performance of pre-optimization done (n=245): time 4.909e-06/1.077, allocations: 0 / 0.75 GB, free: 82.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=315): time 0.09112/1.168, allocations: 36.54 MB / 0.7857 GB, free: 46.05 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.604e-05/1.168, allocations: 265.3 kB / 0.7859 GB, free: 45.74 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007051/1.175, allocations: 5.217 MB / 0.791 GB, free: 40.53 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006343/1.176, allocations: 77.7 kB / 0.7911 GB, free: 40.45 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001713/1.178, allocations: 3.91 MB / 0.7949 GB, free: 36.54 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001061/1.179, allocations: 1.176 MB / 0.7961 GB, free: 35.37 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001815/1.181, allocations: 1.599 MB / 0.7976 GB, free: 33.76 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 3.899e-05/1.181, allocations: 313 kB / 0.7979 GB, free: 33.45 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003965/1.185, allocations: 3.631 MB / 0.8015 GB, free: 29.82 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00555/1.19, allocations: 7.83 MB / 0.8091 GB, free: 19.93 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01138/1.202, allocations: 12.27 MB / 0.8211 GB, free: 5.605 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001186/1.202, allocations: 44 kB / 0.8211 GB, free: 5.562 MB / 490.7 MB Notification: Performance of matching and sorting (n=1027) (initialization): time 0.02528/1.227, allocations: 13.76 MB / 0.8346 GB, free: 7.754 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002125/1.227, allocations: 71.94 kB / 0.8346 GB, free: 7.684 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002947/1.228, allocations: 144 kB / 0.8348 GB, free: 7.543 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008042/1.236, allocations: 2.75 MB / 0.8375 GB, free: 4.785 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006635/1.242, allocations: 1.786 MB / 0.8392 GB, free: 2.996 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02256/1.265, allocations: 16.62 MB / 0.8554 GB, free: 2.117 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006507/1.272, allocations: 479.3 kB / 0.8559 GB, free: 1.648 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001738/1.273, allocations: 451.9 kB / 0.8563 GB, free: 1.207 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (951): * Single equations (assignments): 946 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006218/1.28, allocations: 2.775 MB / 0.859 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001721/1.281, allocations: 485.7 kB / 0.8595 GB, free: 13.94 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0183/1.3, allocations: 8.052 MB / 0.8673 GB, free: 5.816 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.301e-05/1.3, allocations: 36.08 kB / 0.8674 GB, free: 5.781 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-05/1.3, allocations: 15.94 kB / 0.8674 GB, free: 5.766 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000107/1.3, allocations: 11.95 kB / 0.8674 GB, free: 5.754 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03892/1.339, allocations: 17.13 MB / 0.8841 GB, free: 4.453 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.218e-05/1.339, allocations: 12.03 kB / 0.8842 GB, free: 4.441 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002817/1.342, allocations: 0.4992 MB / 0.8846 GB, free: 3.941 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006867/1.349, allocations: 2.479 MB / 0.8871 GB, free: 1.453 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007685/1.35, allocations: 67.91 kB / 0.8871 GB, free: 1.387 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3242/1.674, allocations: 14.78 MB / 0.9016 GB, free: 172.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.654e-06/1.674, allocations: 13.78 kB / 0.9016 GB, free: 172.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1415/1.815, allocations: 89.8 MB / 0.9893 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001657/1.817, allocations: 0.5369 MB / 0.9898 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001095/1.818, allocations: 55.98 kB / 0.9898 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002892/1.821, allocations: 231.6 kB / 0.9901 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006516/1.822, allocations: 205.5 kB / 0.9903 GB, free: 108 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002217/1.822, allocations: 90.02 kB / 0.9904 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.004537/1.827, allocations: 3.302 MB / 0.9936 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.71e-07/1.827, allocations: 3.656 kB / 0.9936 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009569/1.836, allocations: 2.108 MB / 0.9956 GB, free: 102.6 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (253): * Single equations (assignments): 248 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,21,100.0%), (3,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008639/1.837, allocations: 218 kB / 0.9958 GB, free: 102.4 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01182/1.849, allocations: 8.872 MB / 1.005 GB, free: 93.52 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.609e-05/1.849, allocations: 0 / 1.005 GB, free: 93.52 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004685/1.854, allocations: 3.572 MB / 1.008 GB, free: 89.94 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004244/1.858, allocations: 0.6391 MB / 1.009 GB, free: 89.32 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02797/1.886, allocations: 20.13 MB / 1.028 GB, free: 69.09 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006179/1.892, allocations: 4.442 MB / 1.033 GB, free: 64.61 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006327/1.898, allocations: 2.519 MB / 1.035 GB, free: 62.08 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001731/1.9, allocations: 363.4 kB / 1.035 GB, free: 61.72 MB / 0.5417 GB Notification: Performance of SimCode: time 7.62e-07/1.9, allocations: 0 / 1.035 GB, free: 61.72 MB / 0.5417 GB Notification: Performance of Templates: time 0.4329/2.333, allocations: 91.23 MB / 1.125 GB, free: 151.6 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches