Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0009757/0.0009757, allocations: 83.58 kB / 21.18 MB, free: 3.383 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.001021/0.001021, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.9749/0.9749, allocations: 177.1 MB / 205 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2646/0.2646, allocations: 34.26 MB / 295.7 MB, free: 0.6914 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 378 MB, free: 2.629 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.73e-05/1.86e-05, allocations: 13.91 kB / 378.1 MB, free: 2.617 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01086/0.01088, allocations: 14.21 MB / 392.3 MB, free: 4.34 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.007858/0.01874, allocations: 4.929 MB / 397.2 MB, free: 15.39 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001828/0.02056, allocations: 119.4 kB / 397.3 MB, free: 15.28 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004229/0.02479, allocations: 4.47 MB / 401.8 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003672/0.02847, allocations: 2.472 MB / 404.3 MB, free: 8.309 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001399/0.02987, allocations: 1.185 MB / 405.4 MB, free: 7.121 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006736/0.0366, allocations: 8.224 MB / 413.7 MB, free: 14.88 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005561/0.04216, allocations: 4.958 MB / 418.6 MB, free: 9.855 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00624/0.0484, allocations: 4.632 MB / 423.2 MB, free: 5.215 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004007/0.05241, allocations: 3.371 MB / 426.6 MB, free: 1.836 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001282/0.05369, allocations: 500 kB / 427.1 MB, free: 1.348 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00209/0.05578, allocations: 1.311 MB / 428.4 MB, free: 36 kB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002048/0.05783, allocations: 2.942 MB / 431.4 MB, free: 13.09 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002709/0.06054, allocations: 1.854 MB / 433.2 MB, free: 11.23 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006654/0.06719, allocations: 6.244 MB / 439.5 MB, free: 4.961 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.0672, allocations: 3.938 kB / 439.5 MB, free: 4.957 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.0672, allocations: 0 / 439.5 MB, free: 4.957 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002731/0.06747, allocations: 0 / 439.5 MB, free: 4.957 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.1724/0.2399, allocations: 7.501 MB / 447 MB, free: 93.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.2399, allocations: 15.31 kB / 447 MB, free: 93.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01188/0.2518, allocations: 3.885 MB / 450.9 MB, free: 93.4 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00423/0.256, allocations: 3.621 MB / 454.5 MB, free: 92.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001343/0.2562, allocations: 329.8 kB / 454.8 MB, free: 92.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004441/0.2566, allocations: 454 kB / 455.2 MB, free: 92.45 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008214/0.2648, allocations: 7.956 MB / 463.2 MB, free: 87.77 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001304/0.2649, allocations: 67.17 kB / 463.3 MB, free: 87.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003205/0.2653, allocations: 203.2 kB / 463.5 MB, free: 87.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001578/0.2668, allocations: 2.305 MB / 465.8 MB, free: 87.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007632/0.2745, allocations: 4.003 MB / 469.8 MB, free: 86.54 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03493/0.3094, allocations: 55.22 MB / 0.5127 GB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00677/0.3162, allocations: 2.287 MB / 0.5149 GB, free: 40.55 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009303/0.3171, allocations: 0.6544 MB / 0.5156 GB, free: 39.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005664/0.3228, allocations: 4.617 MB / 0.5201 GB, free: 36.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.3228, allocations: 62.33 kB / 0.5201 GB, free: 36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 3.727e-06/0.3228, allocations: 0 / 0.5201 GB, free: 36 MB / 410.7 MB Notification: Performance of matching and sorting (n=212): time 0.04427/0.3671, allocations: 21.56 MB / 0.5412 GB, free: 15.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.326e-05/0.3671, allocations: 256.6 kB / 0.5414 GB, free: 14.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00339/0.3705, allocations: 4.631 MB / 0.546 GB, free: 10.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001037/0.3706, allocations: 53.7 kB / 0.546 GB, free: 10.23 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001308/0.3719, allocations: 4.451 MB / 0.5503 GB, free: 5.809 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004091/0.3723, allocations: 0.9057 MB / 0.5512 GB, free: 4.914 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001115/0.3734, allocations: 1.635 MB / 0.5528 GB, free: 3.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.131e-05/0.3735, allocations: 480.7 kB / 0.5533 GB, free: 2.797 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.3746, allocations: 0.8815 MB / 0.5541 GB, free: 1.914 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00478/0.3794, allocations: 7.704 MB / 0.5617 GB, free: 7.117 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007519/0.3869, allocations: 9.312 MB / 0.5708 GB, free: 10.76 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000115/0.3871, allocations: 48 kB / 0.5708 GB, free: 10.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=992) (initialization): time 0.01134/0.3984, allocations: 7.143 MB / 0.5778 GB, free: 3.559 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.55e-05/0.3985, allocations: 72 kB / 0.5779 GB, free: 3.488 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001599/0.3986, allocations: 160 kB / 0.578 GB, free: 3.332 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002073/0.4007, allocations: 0.893 MB / 0.5789 GB, free: 2.434 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003195/0.4039, allocations: 1.762 MB / 0.5806 GB, free: 0.668 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004486/0.4084, allocations: 5.097 MB / 0.5856 GB, free: 11.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003733/0.4121, allocations: 0.5282 MB / 0.5861 GB, free: 10.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006346/0.4127, allocations: 448 kB / 0.5865 GB, free: 10.37 MB / 458.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.00176/0.4145, allocations: 0.7749 MB / 0.5873 GB, free: 9.582 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008778/0.4154, allocations: 0.4971 MB / 0.5878 GB, free: 9.082 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/0.4186, allocations: 2.146 MB / 0.5899 GB, free: 6.918 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-05/0.4186, allocations: 28.03 kB / 0.5899 GB, free: 6.891 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.4186, allocations: 4 kB / 0.5899 GB, free: 6.887 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.4186, allocations: 7.969 kB / 0.5899 GB, free: 6.879 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01189/0.4305, allocations: 7.903 MB / 0.5976 GB, free: 14.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/0.4305, allocations: 12 kB / 0.5976 GB, free: 14.79 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008376/0.4314, allocations: 356.3 kB / 0.598 GB, free: 14.44 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001551/0.4329, allocations: 0.6272 MB / 0.5986 GB, free: 13.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001195/0.433, allocations: 55.42 kB / 0.5986 GB, free: 13.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00391/0.4369, allocations: 4.697 MB / 0.6032 GB, free: 8.805 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/0.437, allocations: 19.94 kB / 0.6032 GB, free: 8.785 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004599/0.4416, allocations: 3.593 MB / 0.6067 GB, free: 5.012 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008943/0.4424, allocations: 460.8 kB / 0.6072 GB, free: 4.559 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000342/0.4428, allocations: 51.98 kB / 0.6072 GB, free: 4.508 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.4439, allocations: 191.7 kB / 0.6074 GB, free: 4.32 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002497/0.4442, allocations: 152.8 kB / 0.6076 GB, free: 4.172 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.622e-05/0.4442, allocations: 71.98 kB / 0.6076 GB, free: 4.102 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002504/0.4468, allocations: 2.025 MB / 0.6096 GB, free: 2.082 MB / 474.7 MB Notification: Performance of sort global known variables: time 4e-08/0.4468, allocations: 0 / 0.6096 GB, free: 2.082 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004349/0.4511, allocations: 1.455 MB / 0.611 GB, free: 0.6289 MB / 474.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.0004604/0.4516, allocations: 215.5 kB / 0.6112 GB, free: 420 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.156/0.6076, allocations: 4.068 MB / 0.6152 GB, free: 137.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.35e-05/0.6076, allocations: 2.969 kB / 0.6152 GB, free: 137.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001642/0.6092, allocations: 1.248 MB / 0.6164 GB, free: 137.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00299/0.6122, allocations: 0.5938 MB / 0.617 GB, free: 137.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/0.6262, allocations: 10.67 MB / 0.6274 GB, free: 132.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001438/0.6276, allocations: 1.66 MB / 0.6291 GB, free: 132.7 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003053/0.6307, allocations: 1.919 MB / 0.6309 GB, free: 132.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006711/0.6314, allocations: 294.7 kB / 0.6312 GB, free: 132.5 MB / 474.7 MB Notification: Performance of SimCode: time 2.134e-06/0.6314, allocations: 4 kB / 0.6312 GB, free: 132.5 MB / 474.7 MB Notification: Performance of Templates: time 0.06375/0.6951, allocations: 45.79 MB / 0.6759 GB, free: 111.9 MB / 474.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.801734336651862]