Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009357/0.0009357, allocations: 77.88 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008839/0.0008839, allocations: 169 kB / 24.82 MB, free: 8.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.006/1.006, allocations: 177.2 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2917/0.2917, allocations: 32.8 MB / 294.6 MB, free: 1.234 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|freeMotion.r_rel_a.[0-9,]+.|freeMotion.v_rel_a.[0-9,]+.|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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|freeMotion.r_rel_a.[0-9,]+.|freeMotion.v_rel_a.[0-9,]+.|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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.903e-06/1.903e-06, allocations: 0 / 376.5 MB, free: 4.391 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.627e-05/1.817e-05, allocations: 6.25 kB / 376.5 MB, free: 4.383 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.0107/0.01072, allocations: 13.85 MB / 390.3 MB, free: 6.465 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.007795/0.01852, allocations: 4.89 MB / 395.2 MB, free: 1.559 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001463/0.01998, allocations: 119.4 kB / 395.3 MB, free: 1.441 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004326/0.0243, allocations: 4.392 MB / 399.7 MB, free: 13.04 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004096/0.0284, allocations: 2.488 MB / 402.2 MB, free: 10.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001602/0.03, allocations: 1.181 MB / 403.4 MB, free: 9.352 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006297/0.0363, allocations: 8.232 MB / 411.6 MB, free: 1.102 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00468/0.04098, allocations: 4.951 MB / 416.6 MB, free: 12.08 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00522/0.0462, allocations: 4.628 MB / 421.2 MB, free: 7.445 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003604/0.0498, allocations: 3.367 MB / 424.6 MB, free: 4.07 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008772/0.05068, allocations: 499.9 kB / 425.1 MB, free: 3.582 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002247/0.05293, allocations: 1.311 MB / 426.4 MB, free: 2.27 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002086/0.05501, allocations: 2.938 MB / 429.3 MB, free: 15.32 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001801/0.05681, allocations: 1.85 MB / 431.2 MB, free: 13.47 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005438/0.06225, allocations: 6.244 MB / 437.4 MB, free: 7.203 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.06225, allocations: 4 kB / 437.4 MB, free: 7.199 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.06226, allocations: 4 kB / 437.4 MB, free: 7.195 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001044/0.06236, allocations: 0 / 437.4 MB, free: 7.195 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: 1953 * Number of variables: 1953 Notification: Performance of Generate backend data structure: time 0.1957/0.2581, allocations: 7.147 MB / 444.6 MB, free: 94.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.2581, allocations: 8.688 kB / 444.6 MB, free: 94.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01278/0.2709, allocations: 2.97 MB / 447.6 MB, free: 94.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00462/0.2755, allocations: 3.223 MB / 450.8 MB, free: 94.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/0.2757, allocations: 324.6 kB / 451.1 MB, free: 94.19 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004803/0.2762, allocations: 456.9 kB / 451.5 MB, free: 94.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008052/0.2842, allocations: 7.229 MB / 458.8 MB, free: 90.42 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001656/0.2844, allocations: 64.38 kB / 458.8 MB, free: 90.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003436/0.2847, allocations: 202.4 kB / 459 MB, free: 90.31 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001508/0.2862, allocations: 2.156 MB / 461.2 MB, free: 89.9 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005737/0.292, allocations: 3.145 MB / 464.3 MB, free: 89.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03507/0.327, allocations: 54.74 MB / 0.5069 GB, free: 44.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005633/0.3327, allocations: 2.018 MB / 0.5089 GB, free: 44.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009241/0.3336, allocations: 0.5542 MB / 0.5094 GB, free: 44.44 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005754/0.3393, allocations: 4.342 MB / 0.5137 GB, free: 42.06 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.748e-05/0.3394, allocations: 62.92 kB / 0.5137 GB, free: 41.99 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 3.867e-06/0.3394, allocations: 5.516 kB / 0.5137 GB, free: 41.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=212): time 0.03639/0.3758, allocations: 13.09 MB / 0.5265 GB, free: 32.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.3759, allocations: 268.2 kB / 0.5268 GB, free: 31.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006142/0.382, allocations: 4.585 MB / 0.5312 GB, free: 27.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004487/0.3825, allocations: 61.69 kB / 0.5313 GB, free: 27.29 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002049/0.3845, allocations: 4.489 MB / 0.5357 GB, free: 22.78 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009275/0.3855, allocations: 0.915 MB / 0.5366 GB, free: 21.86 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001594/0.387, allocations: 1.67 MB / 0.5382 GB, free: 20.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.63e-05/0.3871, allocations: 480.7 kB / 0.5387 GB, free: 19.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001424/0.3885, allocations: 0.7839 MB / 0.5394 GB, free: 18.92 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00376/0.3923, allocations: 7.652 MB / 0.5469 GB, free: 8.176 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0066/0.3989, allocations: 9.07 MB / 0.5558 GB, free: 12.07 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001975/0.3991, allocations: 48 kB / 0.5558 GB, free: 12.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=992) (initialization): time 0.01486/0.4139, allocations: 6.396 MB / 0.5621 GB, free: 5.613 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/0.414, allocations: 72 kB / 0.5621 GB, free: 5.543 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001961/0.4142, allocations: 160 kB / 0.5623 GB, free: 5.387 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001971/0.4162, allocations: 0.6784 MB / 0.5629 GB, free: 4.703 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003777/0.42, allocations: 1.688 MB / 0.5646 GB, free: 3.008 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004352/0.4243, allocations: 4.852 MB / 0.5693 GB, free: 13.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005135/0.4295, allocations: 339.6 kB / 0.5696 GB, free: 13.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008669/0.4303, allocations: 392 kB / 0.57 GB, free: 13.22 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.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 (950): * Single equations (assignments): 945 * 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,7,88.9%), (3,7,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002481/0.4328, allocations: 0.7711 MB / 0.5708 GB, free: 12.43 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001381/0.4342, allocations: 0.4932 MB / 0.5713 GB, free: 11.94 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002935/0.4371, allocations: 1.741 MB / 0.573 GB, free: 10.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.728e-05/0.4372, allocations: 20 kB / 0.573 GB, free: 10.16 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.4372, allocations: 8 kB / 0.573 GB, free: 10.15 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.4372, allocations: 7.969 kB / 0.573 GB, free: 10.14 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0126/0.4498, allocations: 7.268 MB / 0.5801 GB, free: 2.648 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.729e-05/0.4498, allocations: 8 kB / 0.5801 GB, free: 2.641 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008764/0.4507, allocations: 303.5 kB / 0.5804 GB, free: 2.344 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001444/0.4521, allocations: 463.3 kB / 0.5808 GB, free: 1.883 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001332/0.4523, allocations: 55.92 kB / 0.5809 GB, free: 1.828 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003987/0.4563, allocations: 4.488 MB / 0.5853 GB, free: 13.12 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/0.4563, allocations: 11.94 kB / 0.5853 GB, free: 13.11 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004394/0.4607, allocations: 3.151 MB / 0.5883 GB, free: 9.77 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/0.4621, allocations: 448.8 kB / 0.5888 GB, free: 9.328 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003523/0.4624, allocations: 44 kB / 0.5888 GB, free: 9.285 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009275/0.4634, allocations: 55.98 kB / 0.5889 GB, free: 9.23 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002261/0.4636, allocations: 168.7 kB / 0.589 GB, free: 9.066 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-05/0.4637, allocations: 52 kB / 0.5891 GB, free: 9.016 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002147/0.4658, allocations: 1.88 MB / 0.5909 GB, free: 7.141 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4658, allocations: 0 / 0.5909 GB, free: 7.141 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00573/0.4716, allocations: 1.449 MB / 0.5923 GB, free: 5.691 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (176): * Single equations (assignments): 171 * 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,7,88.9%), (3,7,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000575/0.4721, allocations: 202.7 kB / 0.5925 GB, free: 5.48 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006506/0.4786, allocations: 3.739 MB / 0.5962 GB, free: 1.738 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.235e-05/0.4787, allocations: 0.6875 kB / 0.5962 GB, free: 1.738 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00148/0.4801, allocations: 1.118 MB / 0.5973 GB, free: 0.5859 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003178/0.4833, allocations: 0.6063 MB / 0.5979 GB, free: 0 / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1788/0.6621, allocations: 10.48 MB / 0.6081 GB, free: 119.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002035/0.6641, allocations: 1.656 MB / 0.6097 GB, free: 119.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002149/0.6663, allocations: 0.635 MB / 0.6103 GB, free: 119.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001287/0.6675, allocations: 0.7733 MB / 0.6111 GB, free: 119.5 MB / 458.7 MB Notification: Performance of SimCode: time 2.545e-06/0.6675, allocations: 0 / 0.6111 GB, free: 119.5 MB / 458.7 MB Notification: Performance of Templates: time 0.07299/0.7405, allocations: 48.14 MB / 0.6581 GB, free: 101 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.786719533149153]