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.0009699/0.0009699, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001097/0.001097, allocations: 169.9 kB / 24.91 MB, free: 8.723 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 0.9687/0.9687, allocations: 177.1 MB / 205.3 MB, free: 5.102 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.2625/0.2625, allocations: 32.8 MB / 294.6 MB, free: 1.121 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.182e-06/1.182e-06, allocations: 0 / 323.2 MB, free: 9.703 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.928e-05/2.046e-05, allocations: 3.672 kB / 323.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01657/0.01659, allocations: 13.84 MB / 337.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.009305/0.02589, allocations: 5.112 MB / 342.2 MB, free: 6.656 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001619/0.02751, allocations: 119.4 kB / 342.3 MB, free: 6.539 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004103/0.03161, allocations: 4.454 MB / 346.8 MB, free: 2.07 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003908/0.03552, allocations: 2.503 MB / 349.3 MB, free: 15.55 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001523/0.03704, allocations: 1.197 MB / 350.5 MB, free: 14.36 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00661/0.04365, allocations: 8.202 MB / 358.7 MB, free: 6.141 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004741/0.0484, allocations: 5.072 MB / 363.7 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004774/0.05317, allocations: 4.585 MB / 368.3 MB, free: 12.38 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002902/0.05607, allocations: 3.211 MB / 371.5 MB, free: 9.164 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005844/0.05666, allocations: 496 kB / 372 MB, free: 8.68 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001448/0.05811, allocations: 1.311 MB / 373.3 MB, free: 7.367 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001632/0.05974, allocations: 2.942 MB / 376.3 MB, free: 4.418 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001501/0.06124, allocations: 1.858 MB / 378.1 MB, free: 2.555 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004682/0.06592, allocations: 6.244 MB / 384.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.06592, allocations: 0 / 384.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.06593, allocations: 0 / 384.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.128e-05/0.06602, allocations: 0 / 384.4 MB, free: 12.29 MB / 362.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.006535/0.07255, allocations: 6.417 MB / 390.8 MB, free: 5.805 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.07259, allocations: 12.03 kB / 390.8 MB, free: 5.793 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003747/0.07633, allocations: 1.48 MB / 392.3 MB, free: 4.312 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003435/0.07977, allocations: 2.984 MB / 395.3 MB, free: 1.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/0.07992, allocations: 328.8 kB / 395.6 MB, free: 0.9258 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004742/0.0804, allocations: 448 kB / 396 MB, free: 500 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00685/0.08725, allocations: 6.551 MB / 402.6 MB, free: 9.023 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001083/0.08735, allocations: 67.45 kB / 402.6 MB, free: 8.957 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003081/0.08766, allocations: 207.8 kB / 402.8 MB, free: 8.754 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001605/0.08927, allocations: 2.153 MB / 405 MB, free: 6.602 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004747/0.09401, allocations: 3.21 MB / 408.2 MB, free: 3.371 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2276/0.3216, allocations: 39.79 MB / 448 MB, free: 83.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004259/0.3259, allocations: 2.051 MB / 450 MB, free: 83.44 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000469/0.3264, allocations: 452.4 kB / 450.5 MB, free: 83.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004338/0.3307, allocations: 4.072 MB / 454.6 MB, free: 82.76 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.3307, allocations: 52.84 kB / 454.6 MB, free: 82.72 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 3.446e-06/0.3307, allocations: 3.375 kB / 454.6 MB, free: 82.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=212): time 0.02401/0.3547, allocations: 11.45 MB / 466.1 MB, free: 80.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.3548, allocations: 259.9 kB / 466.3 MB, free: 80.03 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002795/0.3576, allocations: 4.132 MB / 470.5 MB, free: 77.11 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.705e-05/0.3577, allocations: 61.84 kB / 470.5 MB, free: 77.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001008/0.3587, allocations: 3.908 MB / 474.4 MB, free: 73.76 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003707/0.3591, allocations: 0.8747 MB / 475.3 MB, free: 73.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009502/0.36, allocations: 1.447 MB / 476.7 MB, free: 72.09 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.616e-05/0.36, allocations: 301.1 kB / 477 MB, free: 71.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001255/0.3613, allocations: 0.9843 MB / 478 MB, free: 71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002085/0.3634, allocations: 5.477 MB / 483.5 MB, free: 63.53 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003369/0.3668, allocations: 6.969 MB / 490.5 MB, free: 55.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.344e-05/0.3668, allocations: 44 kB / 490.5 MB, free: 55.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=992) (initialization): time 0.004873/0.3717, allocations: 5.439 MB / 495.9 MB, free: 49.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.979e-05/0.3717, allocations: 72 kB / 496 MB, free: 49.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.833e-05/0.3718, allocations: 160 kB / 496.2 MB, free: 49.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001321/0.3731, allocations: 0.6684 MB / 496.8 MB, free: 48.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002505/0.3756, allocations: 1.688 MB / 498.5 MB, free: 47.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002826/0.3785, allocations: 3.706 MB / 0.4905 GB, free: 43.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002725/0.3812, allocations: 339.6 kB / 0.4908 GB, free: 42.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002801/0.3815, allocations: 394.7 kB / 0.4912 GB, free: 42.46 MB / 410.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.001398/0.3829, allocations: 0.7261 MB / 0.4919 GB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004546/0.3833, allocations: 291.6 kB / 0.4922 GB, free: 41.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001944/0.3853, allocations: 1.526 MB / 0.4936 GB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-05/0.3853, allocations: 31.25 kB / 0.4937 GB, free: 39.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.3853, allocations: 4 kB / 0.4937 GB, free: 39.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.3853, allocations: 11.95 kB / 0.4937 GB, free: 39.84 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007629/0.3929, allocations: 6.227 MB / 0.4998 GB, free: 33.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.939e-06/0.3929, allocations: 8 kB / 0.4998 GB, free: 33.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006736/0.3936, allocations: 307.5 kB / 0.5001 GB, free: 33.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001331/0.3949, allocations: 0.6649 MB / 0.5007 GB, free: 32.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.296e-05/0.395, allocations: 43.98 kB / 0.5008 GB, free: 32.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002289/0.3973, allocations: 3.347 MB / 0.504 GB, free: 28.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.3973, allocations: 11.94 kB / 0.504 GB, free: 28.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002506/0.3998, allocations: 2.623 MB / 0.5066 GB, free: 26.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004867/0.4003, allocations: 432.8 kB / 0.507 GB, free: 25.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002854/0.4006, allocations: 47.98 kB / 0.5071 GB, free: 25.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007778/0.4014, allocations: 51.98 kB / 0.5071 GB, free: 25.58 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/0.4016, allocations: 160.8 kB / 0.5073 GB, free: 25.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.522e-05/0.4016, allocations: 52 kB / 0.5073 GB, free: 25.38 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001068/0.4027, allocations: 1.564 MB / 0.5088 GB, free: 23.81 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4027, allocations: 1.203 kB / 0.5088 GB, free: 23.81 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00354/0.4062, allocations: 1.457 MB / 0.5103 GB, free: 22.36 MB / 410.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.0002958/0.4065, allocations: 188.5 kB / 0.5104 GB, free: 22.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003045/0.4096, allocations: 3.371 MB / 0.5137 GB, free: 18.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001499/0.4097, allocations: 113.6 kB / 0.5138 GB, free: 18.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000856/0.4106, allocations: 0.9135 MB / 0.5147 GB, free: 17.74 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002172/0.4128, allocations: 0.8595 MB / 0.5156 GB, free: 16.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009017/0.4218, allocations: 10.16 MB / 0.5255 GB, free: 6.555 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00111/0.4229, allocations: 1.661 MB / 0.5271 GB, free: 4.875 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001337/0.4242, allocations: 0.63 MB / 0.5277 GB, free: 4.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000964/0.4252, allocations: 0.7237 MB / 0.5284 GB, free: 3.527 MB / 410.7 MB Notification: Performance of SimCode: time 1.423e-06/0.4252, allocations: 0 / 0.5284 GB, free: 3.527 MB / 410.7 MB Notification: Performance of Templates: time 0.06105/0.4862, allocations: 48.06 MB / 0.5754 GB, free: 3.895 MB / 458.7 MB " [Timeout remaining time 660] 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.434927243273705]