Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.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.001018/0.001018, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001051/0.001051, allocations: 167.3 kB / 24.99 MB, free: 8.746 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.9388/0.9388, allocations: 177.1 MB / 205.3 MB, free: 5.629 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.2494/0.2494, allocations: 32.8 MB / 294.6 MB, free: 1.223 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.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring") translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.635e-06/2.635e-06, allocations: 4 kB / 376 MB, free: 4.965 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.783e-05/2.047e-05, allocations: 9.766 kB / 376 MB, free: 4.957 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.008727/0.008747, allocations: 10.95 MB / 387 MB, free: 9.949 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.006301/0.01505, allocations: 3.968 MB / 390.9 MB, free: 5.969 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.01617, allocations: 87.5 kB / 391 MB, free: 5.883 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002877/0.01905, allocations: 2.659 MB / 393.7 MB, free: 3.215 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003051/0.0221, allocations: 1.956 MB / 395.6 MB, free: 1.25 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001201/0.0233, allocations: 0.8615 MB / 396.5 MB, free: 396 kB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005332/0.02863, allocations: 5.208 MB / 401.7 MB, free: 11.17 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004118/0.03275, allocations: 3.369 MB / 405.1 MB, free: 7.75 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003089/0.03584, allocations: 2.436 MB / 407.5 MB, free: 5.309 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002923/0.03877, allocations: 2.545 MB / 410.1 MB, free: 2.758 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006025/0.03937, allocations: 340 kB / 410.4 MB, free: 2.426 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001323/0.04069, allocations: 0.9167 MB / 411.3 MB, free: 1.508 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001509/0.0422, allocations: 2.065 MB / 413.4 MB, free: 15.44 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00138/0.04358, allocations: 1.324 MB / 414.7 MB, free: 14.11 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005208/0.04879, allocations: 4.511 MB / 419.2 MB, free: 9.582 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.04879, allocations: 0 / 419.2 MB, free: 9.582 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.053e-06/0.0488, allocations: 0 / 419.2 MB, free: 9.582 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001327/0.04893, allocations: 0 / 419.2 MB, free: 9.582 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.006909/0.05584, allocations: 5.275 MB / 424.5 MB, free: 4.238 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.333e-05/0.0559, allocations: 8.031 kB / 424.5 MB, free: 4.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005136/0.06104, allocations: 2.518 MB / 427 MB, free: 1.707 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003336/0.06437, allocations: 2.096 MB / 429.1 MB, free: 15.56 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001454/0.06452, allocations: 242.6 kB / 429.3 MB, free: 15.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000463/0.06498, allocations: 328.2 kB / 429.7 MB, free: 15 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01015/0.07513, allocations: 6.58 MB / 436.2 MB, free: 7.324 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001054/0.07524, allocations: 43.64 kB / 436.3 MB, free: 7.281 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003074/0.07554, allocations: 163.8 kB / 436.4 MB, free: 7.121 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001732/0.07728, allocations: 1.904 MB / 438.3 MB, free: 5.215 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007443/0.08472, allocations: 3.279 MB / 441.6 MB, free: 1.902 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1855/0.2703, allocations: 45.39 MB / 487 MB, free: 60.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004148/0.2744, allocations: 2.121 MB / 489.1 MB, free: 59.51 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006064/0.275, allocations: 475.7 kB / 489.6 MB, free: 59.36 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0042/0.2792, allocations: 3.964 MB / 493.6 MB, free: 57.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.2793, allocations: 52.83 kB / 493.6 MB, free: 57.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=148): time 4.429e-06/0.2793, allocations: 0 / 493.6 MB, free: 57.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=160): time 0.01269/0.2919, allocations: 8.028 MB / 0.4899 GB, free: 53.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.89e-05/0.292, allocations: 196.5 kB / 0.4901 GB, free: 53.51 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003106/0.2951, allocations: 3.518 MB / 0.4935 GB, free: 52.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.755e-05/0.2952, allocations: 50.44 kB / 0.4936 GB, free: 52.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001378/0.2966, allocations: 3.462 MB / 0.4969 GB, free: 49.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004227/0.297, allocations: 0.6741 MB / 0.4976 GB, free: 48.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001201/0.2982, allocations: 1.315 MB / 0.4989 GB, free: 48.24 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.162e-05/0.2982, allocations: 481.8 kB / 0.4993 GB, free: 47.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.2993, allocations: 0.5766 MB / 0.4999 GB, free: 47.69 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002633/0.3019, allocations: 6.357 MB / 0.5061 GB, free: 39.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005017/0.307, allocations: 7.593 MB / 0.5135 GB, free: 31.01 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001527/0.3071, allocations: 38.62 kB / 0.5136 GB, free: 31.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.00802/0.3151, allocations: 5.109 MB / 0.5185 GB, free: 29.03 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.237e-05/0.3152, allocations: 63.59 kB / 0.5186 GB, free: 29.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000207/0.3154, allocations: 135.4 kB / 0.5187 GB, free: 29.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001877/0.3156, allocations: 184.6 kB / 0.5189 GB, free: 29.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002846/0.3185, allocations: 1.442 MB / 0.5203 GB, free: 28.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001582/0.3186, allocations: 274.6 kB / 0.5206 GB, free: 28.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003345/0.322, allocations: 363.9 kB / 0.5209 GB, free: 28.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004376/0.3224, allocations: 378.6 kB / 0.5213 GB, free: 28.62 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (775): * Single equations (assignments): 772 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001523/0.3239, allocations: 0.6674 MB / 0.5219 GB, free: 28.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005332/0.3245, allocations: 365.2 kB / 0.5223 GB, free: 27.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000348/0.3248, allocations: 321 kB / 0.5226 GB, free: 27.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-05/0.3248, allocations: 23.53 kB / 0.5226 GB, free: 27.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-05/0.3249, allocations: 0 / 0.5226 GB, free: 27.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.3249, allocations: 6.844 kB / 0.5226 GB, free: 27.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005494/0.3304, allocations: 4.927 MB / 0.5274 GB, free: 23.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/0.3304, allocations: 16 kB / 0.5275 GB, free: 23.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000539/0.3309, allocations: 284.7 kB / 0.5277 GB, free: 22.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.67e-05/0.3309, allocations: 24 kB / 0.5277 GB, free: 22.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.097e-05/0.331, allocations: 47.59 kB / 0.5278 GB, free: 22.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.902e-05/0.331, allocations: 35.25 kB / 0.5278 GB, free: 22.84 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.089e-05/0.331, allocations: 31.3 kB / 0.5279 GB, free: 22.81 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001863/0.3329, allocations: 2.496 MB / 0.5303 GB, free: 20.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005218/0.3334, allocations: 332.3 kB / 0.5306 GB, free: 19.76 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002375/0.3336, allocations: 52.55 kB / 0.5307 GB, free: 19.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007226/0.3344, allocations: 96.88 kB / 0.5308 GB, free: 19.65 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.3345, allocations: 152.7 kB / 0.5309 GB, free: 19.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.498e-05/0.3346, allocations: 65.97 kB / 0.531 GB, free: 19.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001702/0.3363, allocations: 1.498 MB / 0.5324 GB, free: 18.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3363, allocations: 0 / 0.5324 GB, free: 18.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00378/0.34, allocations: 0.985 MB / 0.5334 GB, free: 17.28 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * 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 (145): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003735/0.3404, allocations: 218 kB / 0.5336 GB, free: 17.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003766/0.3442, allocations: 2.616 MB / 0.5361 GB, free: 14.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/0.3442, allocations: 4 kB / 0.5362 GB, free: 14.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004673/0.3447, allocations: 463.4 kB / 0.5366 GB, free: 14.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001641/0.3463, allocations: 431.7 kB / 0.537 GB, free: 14.01 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008556/0.3549, allocations: 7.687 MB / 0.5445 GB, free: 6.496 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001146/0.356, allocations: 1.199 MB / 0.5457 GB, free: 5.633 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002253/0.3583, allocations: 1.569 MB / 0.5472 GB, free: 4.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004233/0.3587, allocations: 235.3 kB / 0.5474 GB, free: 4.512 MB / 410.7 MB Notification: Performance of SimCode: time 2.675e-06/0.3587, allocations: 0 / 0.5474 GB, free: 4.512 MB / 410.7 MB Notification: Performance of Templates: time 0.03782/0.3965, allocations: 21.76 MB / 0.5687 GB, free: 15.98 MB / 442.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.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.276030282955617]