Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine.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.0009253/0.0009253, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.0008933/0.0008933, allocations: 173 kB / 23.36 MB, free: 1.129 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.9982/0.9982, allocations: 177.1 MB / 203.8 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo): time 0.05116/0.05116, allocations: 7.196 MB / 267.4 MB, free: 5.949 MB / 250.7 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.7.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/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(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") translateModel(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 286.1 MB, free: 3.309 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.295e-05/2.472e-05, allocations: 2.312 kB / 286.1 MB, free: 3.305 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.1205/0.1206, allocations: 9.329 MB / 295.4 MB, free: 16.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007176/0.1277, allocations: 2.945 MB / 298.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001609/0.1294, allocations: 47.69 kB / 298.4 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001048/0.1304, allocations: 444.9 kB / 298.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00453/0.1349, allocations: 1.639 MB / 300.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005648/0.1355, allocations: 192 kB / 300.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003959/0.1395, allocations: 2.926 MB / 303.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001407/0.1409, allocations: 0.9599 MB / 304.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002267/0.1431, allocations: 1.587 MB / 306.1 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002423/0.1456, allocations: 1.404 MB / 307.5 MB, free: 9.809 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006287/0.1462, allocations: 265 kB / 307.8 MB, free: 9.809 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001452/0.1476, allocations: 0.8654 MB / 308.7 MB, free: 9.422 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008386/0.1485, allocations: 1.418 MB / 310.1 MB, free: 8 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001543/0.15, allocations: 0.9537 MB / 311 MB, free: 7.043 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004421/0.1544, allocations: 3.611 MB / 314.6 MB, free: 3.418 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1544, allocations: 0 / 314.6 MB, free: 3.418 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1544, allocations: 0.5 kB / 314.6 MB, free: 3.418 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001397/0.1546, allocations: 7.031 kB / 314.7 MB, free: 3.414 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1310 * Number of variables: 1310 Notification: Performance of Generate backend data structure: time 0.006716/0.1613, allocations: 4.21 MB / 318.9 MB, free: 15.15 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.1613, allocations: 8.625 kB / 318.9 MB, free: 15.14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003018/0.1644, allocations: 1.054 MB / 319.9 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001677/0.166, allocations: 1.109 MB / 321 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.1661, allocations: 176.8 kB / 321.2 MB, free: 12.78 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002825/0.1664, allocations: 231.9 kB / 321.4 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004986/0.1714, allocations: 4.027 MB / 325.5 MB, free: 8.055 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.42e-05/0.1715, allocations: 32.27 kB / 325.5 MB, free: 8.023 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002085/0.1717, allocations: 107.8 kB / 325.6 MB, free: 7.918 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001855/0.1735, allocations: 1.826 MB / 327.4 MB, free: 6.09 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004272/0.1778, allocations: 2.249 MB / 329.7 MB, free: 3.832 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01885/0.1967, allocations: 21.52 MB / 351.2 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003158/0.1998, allocations: 1.369 MB / 352.6 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000384/0.2002, allocations: 300.8 kB / 352.9 MB, free: 12.04 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004388/0.2046, allocations: 3 MB / 355.9 MB, free: 9.016 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.2046, allocations: 43.88 kB / 355.9 MB, free: 8.961 MB / 314.7 MB Notification: Performance of pre-optimization done (n=155): time 3.868e-06/0.2046, allocations: 0 / 355.9 MB, free: 8.961 MB / 314.7 MB Notification: Performance of matching and sorting (n=193): time 0.007013/0.2116, allocations: 3.609 MB / 359.5 MB, free: 5.363 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.2117, allocations: 69.41 kB / 359.6 MB, free: 5.281 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001581/0.2133, allocations: 2.044 MB / 361.6 MB, free: 3.195 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.015e-05/0.2133, allocations: 49.7 kB / 361.7 MB, free: 3.141 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001156/0.2145, allocations: 2.43 MB / 364.1 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003617/0.2148, allocations: 0.7246 MB / 364.8 MB, free: 15.95 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007216/0.2156, allocations: 0.902 MB / 365.7 MB, free: 15.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.32e-05/0.2157, allocations: 361.8 kB / 366.1 MB, free: 14.68 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006012/0.2163, allocations: 496.3 kB / 366.6 MB, free: 14.18 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001815/0.2181, allocations: 2.997 MB / 369.6 MB, free: 9.898 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002893/0.221, allocations: 4.114 MB / 373.7 MB, free: 4.48 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.018e-05/0.221, allocations: 28 kB / 373.7 MB, free: 4.453 MB / 330.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.003868/0.2249, allocations: 3.275 MB / 377 MB, free: 1.129 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.446e-05/0.2249, allocations: 47.98 kB / 377 MB, free: 1.082 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-05/0.225, allocations: 95.94 kB / 377.1 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009141/0.2259, allocations: 483.3 kB / 377.6 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001718/0.2276, allocations: 1.033 MB / 378.6 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004945/0.2325, allocations: 6.205 MB / 384.8 MB, free: 8.992 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/0.2343, allocations: 184 kB / 385 MB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002491/0.2346, allocations: 236.1 kB / 385.2 MB, free: 8.582 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 414 * Number of states: 0 () * Number of discrete variables: 24 (revolutePiston.cylinderColor[3],revolutePiston.cylinderColor[2],revolutePiston.cylinderColor[1],bodyPiston.sphereColor[3],bodyPiston.sphereColor[2],bodyPiston.sphereColor[1],pistonRod.color[3],pistonRod.color[2],pistonRod.color[1],revoluteDisc.cylinderColor[3],revoluteDisc.cylinderColor[2],revoluteDisc.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],fixedTranslationDisc.color[3],fixedTranslationDisc.color[2],fixedTranslationDisc.color[1],revoluteDrive.cylinderColor[3],revoluteDrive.cylinderColor[2],revoluteDrive.cylinderColor[1],bodyDrive.sphereColor[3],bodyDrive.sphereColor[2],bodyDrive.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 553 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,19,56.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0009524/0.2355, allocations: 496.9 kB / 385.7 MB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002273/0.2357, allocations: 179.8 kB / 385.9 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001382/0.2371, allocations: 1.091 MB / 387 MB, free: 6.797 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.044e-05/0.2372, allocations: 23.98 kB / 387 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.2372, allocations: 8 kB / 387 MB, free: 6.766 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.2372, allocations: 7.969 kB / 387 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005034/0.2422, allocations: 3.841 MB / 390.9 MB, free: 2.781 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.595e-06/0.2422, allocations: 4.562 kB / 390.9 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005127/0.2427, allocations: 235.7 kB / 391.1 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007893/0.2435, allocations: 429 kB / 391.5 MB, free: 2.117 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.371e-05/0.2436, allocations: 35.98 kB / 391.6 MB, free: 2.082 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003759/0.2474, allocations: 5.081 MB / 396.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2474, allocations: 4 kB / 396.6 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002024/0.2494, allocations: 1.553 MB / 398.2 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003844/0.2498, allocations: 206.4 kB / 398.4 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001989/0.25, allocations: 32 kB / 398.4 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003951/0.2504, allocations: 40.02 kB / 398.5 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001953/0.2506, allocations: 129 kB / 398.6 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.049e-05/0.2506, allocations: 51.92 kB / 398.6 MB, free: 10.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008087/0.2514, allocations: 0.739 MB / 399.4 MB, free: 9.832 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2514, allocations: 0 / 399.4 MB, free: 9.832 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002512/0.2539, allocations: 0.8163 MB / 400.2 MB, free: 9.016 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (revoluteDrive.phi,revoluteDrive.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 (135): * Single equations (assignments): 128 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,15,56.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002655/0.2542, allocations: 160 kB / 400.4 MB, free: 8.848 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002955/0.2572, allocations: 2.426 MB / 402.8 MB, free: 6.391 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.928e-05/0.2573, allocations: 60.19 kB / 402.8 MB, free: 6.328 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008653/0.2581, allocations: 0.9577 MB / 403.8 MB, free: 5.328 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008598/0.259, allocations: 319.6 kB / 404.1 MB, free: 5.023 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00755/0.2665, allocations: 6.202 MB / 410.3 MB, free: 14.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009244/0.2675, allocations: 1.014 MB / 411.3 MB, free: 13.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001007/0.2685, allocations: 347.5 kB / 411.7 MB, free: 13.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005807/0.2691, allocations: 413.2 kB / 412.1 MB, free: 12.94 MB / 378.7 MB Notification: Performance of SimCode: time 1.603e-06/0.2691, allocations: 0 / 412.1 MB, free: 12.94 MB / 378.7 MB Notification: Performance of Templates: time 0.04084/0.3099, allocations: 25.97 MB / 438 MB, free: 3.344 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.makefile [Timeout 660] (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine.sim & ./PlanarMechanics_PlanarMechanics.Examples.PistonEngine -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.6352609521709383]