Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.001524/0.001524, allocations: 88.2 kB / 20.94 MB, free: 3.605 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.001839/0.001839, allocations: 169 kB / 24.24 MB, free: 312 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9668/0.9668, allocations: 158.6 MB / 186 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1298/0.1298, allocations: 32.37 MB / 270.7 MB, free: 14.77 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.274e-06/2.274e-06, allocations: 0 / 347.7 MB, free: 9.762 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.864e-05/3.092e-05, allocations: 4.281 kB / 347.7 MB, free: 9.758 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01001/0.01004, allocations: 10.05 MB / 357.7 MB, free: 15.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008205/0.01824, allocations: 3.787 MB / 361.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002028/0.02027, allocations: 75.62 kB / 361.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003616/0.02389, allocations: 2.223 MB / 363.8 MB, free: 9.559 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004651/0.02854, allocations: 1.808 MB / 365.6 MB, free: 7.742 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001623/0.03016, allocations: 0.7637 MB / 366.4 MB, free: 6.977 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005336/0.0355, allocations: 4.172 MB / 370.6 MB, free: 2.797 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003661/0.03916, allocations: 2.508 MB / 373.1 MB, free: 240 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004271/0.04343, allocations: 1.999 MB / 375.1 MB, free: 14.23 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002681/0.04611, allocations: 2.042 MB / 377.1 MB, free: 12.18 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005295/0.04664, allocations: 272 kB / 377.4 MB, free: 11.92 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003027/0.04967, allocations: 1.135 MB / 378.5 MB, free: 10.78 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002688/0.05235, allocations: 1.812 MB / 380.3 MB, free: 8.965 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00219/0.05454, allocations: 1.098 MB / 381.4 MB, free: 7.863 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005848/0.06039, allocations: 4.285 MB / 385.7 MB, free: 3.562 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.0604, allocations: 3.984 kB / 385.7 MB, free: 3.559 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.0604, allocations: 0 / 385.7 MB, free: 3.559 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001389/0.06054, allocations: 4 kB / 385.7 MB, free: 3.555 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.005851/0.06639, allocations: 4.629 MB / 390.3 MB, free: 14.86 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.06643, allocations: 8.031 kB / 390.3 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008298/0.07473, allocations: 2.92 MB / 393.3 MB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003502/0.07823, allocations: 2.196 MB / 395.5 MB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/0.07835, allocations: 197.3 kB / 395.7 MB, free: 9.488 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005583/0.07891, allocations: 272.5 kB / 395.9 MB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007459/0.08637, allocations: 5.3 MB / 401.2 MB, free: 3.059 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001072/0.08647, allocations: 47.59 kB / 401.3 MB, free: 3.012 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002989/0.08677, allocations: 131.8 kB / 401.4 MB, free: 2.883 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001697/0.08847, allocations: 1.731 MB / 403.1 MB, free: 1.152 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006069/0.09454, allocations: 2.825 MB / 405.9 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03026/0.1248, allocations: 37.51 MB / 443.5 MB, free: 7.598 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00502/0.1298, allocations: 1.892 MB / 445.4 MB, free: 5.656 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001095/0.1309, allocations: 0.5996 MB / 446 MB, free: 5.043 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006909/0.1378, allocations: 4.648 MB / 450.6 MB, free: 364 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.653e-05/0.1379, allocations: 50.39 kB / 450.6 MB, free: 304 kB / 378.7 MB Notification: Performance of pre-optimization done (n=151): time 8.857e-06/0.1379, allocations: 3.938 kB / 450.7 MB, free: 300 kB / 378.7 MB Notification: Performance of matching and sorting (n=188): time 0.1924/0.3303, allocations: 13.99 MB / 464.6 MB, free: 103.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.4e-05/0.3303, allocations: 201.2 kB / 464.8 MB, free: 103.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002673/0.333, allocations: 3.337 MB / 468.2 MB, free: 100.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001525/0.3332, allocations: 53.7 kB / 468.2 MB, free: 100.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001014/0.3342, allocations: 3.076 MB / 471.3 MB, free: 97.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004967/0.3347, allocations: 0.7699 MB / 472.1 MB, free: 96.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008774/0.3355, allocations: 1.29 MB / 473.4 MB, free: 95.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.899e-05/0.3356, allocations: 476.8 kB / 473.8 MB, free: 94.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/0.3366, allocations: 0.7417 MB / 474.6 MB, free: 94.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002204/0.3388, allocations: 6.064 MB / 480.6 MB, free: 85.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00487/0.3437, allocations: 7.478 MB / 488.1 MB, free: 75.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.629e-05/0.3438, allocations: 36 kB / 488.2 MB, free: 75.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01055/0.3544, allocations: 6.207 MB / 494.4 MB, free: 69.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.039e-05/0.3544, allocations: 56.94 kB / 494.4 MB, free: 69.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001016/0.3545, allocations: 131.9 kB / 494.5 MB, free: 69.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004003/0.3585, allocations: 1.448 MB / 496 MB, free: 67.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002749/0.3613, allocations: 1.326 MB / 497.3 MB, free: 66.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006402/0.3677, allocations: 4.955 MB / 0.4905 GB, free: 61.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003195/0.3709, allocations: 343.6 kB / 0.4908 GB, free: 61.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003684/0.3712, allocations: 364 kB / 0.4912 GB, free: 60.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (714): * Single equations (assignments): 710 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,43,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00102/0.3723, allocations: 0.6416 MB / 0.4918 GB, free: 60.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004524/0.3727, allocations: 377.5 kB / 0.4922 GB, free: 59.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004761/0.3775, allocations: 2.368 MB / 0.4945 GB, free: 57.47 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.928e-05/0.3775, allocations: 23.98 kB / 0.4945 GB, free: 57.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.3775, allocations: 8 kB / 0.4945 GB, free: 57.44 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.3775, allocations: 7.969 kB / 0.4945 GB, free: 57.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01541/0.3929, allocations: 5.656 MB / 0.5 GB, free: 51.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.3929, allocations: 0 / 0.5 GB, free: 51.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003875/0.3968, allocations: 255.6 kB / 0.5003 GB, free: 51.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006853/0.4037, allocations: 1.23 MB / 0.5015 GB, free: 50.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001462/0.4038, allocations: 39.94 kB / 0.5015 GB, free: 50.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005895/0.4097, allocations: 4.469 MB / 0.5059 GB, free: 45.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.4097, allocations: 3.938 kB / 0.5059 GB, free: 45.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006518/0.4162, allocations: 3.43 MB / 0.5092 GB, free: 42.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001481/0.4177, allocations: 0.5289 MB / 0.5098 GB, free: 41.67 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003614/0.4181, allocations: 39.41 kB / 0.5098 GB, free: 41.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.4192, allocations: 131.8 kB / 0.5099 GB, free: 41.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000339/0.4195, allocations: 109.8 kB / 0.51 GB, free: 41.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/0.4196, allocations: 47.98 kB / 0.5101 GB, free: 41.35 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001649/0.4212, allocations: 1.42 MB / 0.5115 GB, free: 39.94 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4213, allocations: 0 / 0.5115 GB, free: 39.94 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003309/0.4246, allocations: 1.078 MB / 0.5125 GB, free: 38.86 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * 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 (130): * Single equations (assignments): 126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004381/0.425, allocations: 190.2 kB / 0.5127 GB, free: 38.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004376/0.4294, allocations: 3.293 MB / 0.5159 GB, free: 35.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.4294, allocations: 4.938 kB / 0.5159 GB, free: 35.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.4305, allocations: 0.9975 MB / 0.5169 GB, free: 34.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001501/0.432, allocations: 356.9 kB / 0.5172 GB, free: 34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007799/0.4398, allocations: 6.782 MB / 0.5238 GB, free: 27.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007699/0.4405, allocations: 1.12 MB / 0.5249 GB, free: 26.01 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002026/0.4426, allocations: 1.552 MB / 0.5265 GB, free: 24.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004146/0.443, allocations: 216.5 kB / 0.5267 GB, free: 24.25 MB / 378.7 MB Notification: Performance of SimCode: time 1.583e-06/0.443, allocations: 0 / 0.5267 GB, free: 24.25 MB / 378.7 MB Notification: Performance of Templates: time 0.04261/0.4856, allocations: 35.49 MB / 0.5613 GB, free: 4.875 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.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.520069625927135]