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.001125/0.001125, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.001199/0.001199, allocations: 169 kB / 23.27 MB, free: 1.219 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 1.153/1.153, allocations: 177.1 MB / 203.7 MB, free: 5.516 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.05947/0.05947, allocations: 7.2 MB / 267.4 MB, free: 5.898 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.663e-06/1.663e-06, allocations: 0 / 339.3 MB, free: 11.01 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.789e-05/1.956e-05, allocations: 8.844 kB / 339.3 MB, free: 11 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.007939/0.007958, allocations: 9.274 MB / 348.6 MB, free: 1.68 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00439/0.01235, allocations: 2.843 MB / 351.4 MB, free: 14.83 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006246/0.01297, allocations: 47.81 kB / 351.5 MB, free: 14.78 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000561/0.01353, allocations: 432.9 kB / 351.9 MB, free: 14.36 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001935/0.01547, allocations: 1.648 MB / 353.5 MB, free: 12.7 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002548/0.01572, allocations: 191.5 kB / 353.7 MB, free: 12.51 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002309/0.01803, allocations: 2.927 MB / 356.7 MB, free: 9.582 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001591/0.01962, allocations: 0.9353 MB / 357.6 MB, free: 8.613 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001551/0.02118, allocations: 1.594 MB / 359.2 MB, free: 7.016 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001468/0.02264, allocations: 1.457 MB / 360.6 MB, free: 5.555 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003628/0.02301, allocations: 260 kB / 360.9 MB, free: 5.301 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001193/0.0242, allocations: 0.8581 MB / 361.8 MB, free: 4.441 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009604/0.02516, allocations: 1.422 MB / 363.2 MB, free: 3.016 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008852/0.02605, allocations: 0.946 MB / 364.1 MB, free: 2.066 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003253/0.0293, allocations: 3.626 MB / 367.7 MB, free: 14.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.0293, allocations: 4 kB / 367.7 MB, free: 14.42 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.02931, allocations: 0 / 367.7 MB, free: 14.42 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.888e-05/0.02937, allocations: 0 / 367.7 MB, free: 14.42 MB / 346.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.007311/0.03669, allocations: 5.484 MB / 373.2 MB, free: 8.875 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.03674, allocations: 8.625 kB / 373.2 MB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00299/0.03973, allocations: 1.337 MB / 374.6 MB, free: 7.527 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001473/0.0412, allocations: 1.322 MB / 375.9 MB, free: 6.176 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.0413, allocations: 176.8 kB / 376.1 MB, free: 6 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002848/0.04159, allocations: 236 kB / 376.3 MB, free: 5.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004793/0.04638, allocations: 4.354 MB / 380.7 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.585e-05/0.04644, allocations: 35.69 kB / 380.7 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002429/0.04668, allocations: 107.9 kB / 380.8 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001659/0.04834, allocations: 1.818 MB / 382.6 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003751/0.05209, allocations: 2.247 MB / 384.9 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02774/0.07983, allocations: 29.8 MB / 414.7 MB, free: 14 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004313/0.08414, allocations: 1.317 MB / 416 MB, free: 12.67 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006751/0.08481, allocations: 348.7 kB / 416.3 MB, free: 12.33 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006616/0.09143, allocations: 3.21 MB / 419.5 MB, free: 9.09 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.727e-05/0.09149, allocations: 46.7 kB / 419.6 MB, free: 9.035 MB / 394.7 MB Notification: Performance of pre-optimization done (n=155): time 5.14e-06/0.09149, allocations: 0 / 419.6 MB, free: 9.035 MB / 394.7 MB Notification: Performance of matching and sorting (n=193): time 0.009947/0.1014, allocations: 3.91 MB / 423.5 MB, free: 5.129 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.729e-05/0.1015, allocations: 73.34 kB / 423.6 MB, free: 5.047 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004087/0.1056, allocations: 2.275 MB / 425.8 MB, free: 2.727 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002392/0.1058, allocations: 57.7 kB / 425.9 MB, free: 2.664 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001884/0.1077, allocations: 2.615 MB / 428.5 MB, free: 20 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009074/0.1086, allocations: 0.7598 MB / 429.3 MB, free: 15.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001361/0.11, allocations: 1.044 MB / 430.3 MB, free: 14.19 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002539/0.1102, allocations: 0.5235 MB / 430.8 MB, free: 13.66 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008833/0.1111, allocations: 405.2 kB / 431.2 MB, free: 13.26 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003852/0.115, allocations: 4.249 MB / 435.5 MB, free: 7.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00668/0.1216, allocations: 5.215 MB / 440.7 MB, free: 296 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001439/0.1218, allocations: 31.94 kB / 440.7 MB, free: 264 kB / 410.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.286/0.4077, allocations: 3.807 MB / 444.5 MB, free: 124.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.838e-05/0.4078, allocations: 45.34 kB / 444.6 MB, free: 124.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001368/0.408, allocations: 91.72 kB / 444.7 MB, free: 124.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001213/0.4092, allocations: 488.9 kB / 445.1 MB, free: 124.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002319/0.4115, allocations: 0.9966 MB / 446.1 MB, free: 124.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00593/0.4174, allocations: 8.01 MB / 454.2 MB, free: 118.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003971/0.4214, allocations: 184.6 kB / 454.3 MB, free: 118.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009152/0.4223, allocations: 243.1 kB / 454.6 MB, free: 118.6 MB / 410.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.002041/0.4244, allocations: 0.5342 MB / 455.1 MB, free: 118.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000586/0.4249, allocations: 288.4 kB / 455.4 MB, free: 118.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001942/0.4269, allocations: 1.272 MB / 456.7 MB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-05/0.427, allocations: 21.47 kB / 456.7 MB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.418e-05/0.427, allocations: 6.219 kB / 456.7 MB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/0.427, allocations: 10.08 kB / 456.7 MB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008791/0.4358, allocations: 4.558 MB / 461.3 MB, free: 117.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.4358, allocations: 2.938 kB / 461.3 MB, free: 117.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000513/0.4363, allocations: 224.4 kB / 461.5 MB, free: 117.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008686/0.4372, allocations: 346.3 kB / 461.8 MB, free: 117.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001245/0.4373, allocations: 35.38 kB / 461.8 MB, free: 117.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004589/0.4419, allocations: 6.816 MB / 468.7 MB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.4419, allocations: 3.312 kB / 468.7 MB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003213/0.4451, allocations: 1.843 MB / 470.5 MB, free: 110.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007273/0.4458, allocations: 218.2 kB / 470.7 MB, free: 110.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002763/0.4461, allocations: 32.5 kB / 470.8 MB, free: 110.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005263/0.4466, allocations: 46.59 kB / 470.8 MB, free: 110.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002753/0.4469, allocations: 137 kB / 470.9 MB, free: 110.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.708e-05/0.447, allocations: 40.03 kB / 471 MB, free: 110.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001612/0.4486, allocations: 0.9297 MB / 471.9 MB, free: 109.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.4486, allocations: 0 / 471.9 MB, free: 109.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004328/0.4529, allocations: 0.819 MB / 472.7 MB, free: 109.8 MB / 410.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.0004786/0.4534, allocations: 175.4 kB / 472.9 MB, free: 109.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004498/0.4579, allocations: 2.738 MB / 475.6 MB, free: 108.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.794e-06/0.4579, allocations: 3.406 kB / 475.6 MB, free: 108.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001271/0.4592, allocations: 1.176 MB / 476.8 MB, free: 107.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001633/0.4608, allocations: 332.8 kB / 477.1 MB, free: 107.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0128/0.4736, allocations: 6.103 MB / 483.2 MB, free: 104.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001448/0.4751, allocations: 1.025 MB / 484.3 MB, free: 104.2 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001316/0.4764, allocations: 346.6 kB / 484.6 MB, free: 104.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005817/0.477, allocations: 450.4 kB / 485 MB, free: 104 MB / 410.7 MB Notification: Performance of SimCode: time 2.084e-06/0.477, allocations: 4 kB / 485 MB, free: 104 MB / 410.7 MB Notification: Performance of Templates: time 0.04709/0.5241, allocations: 25.98 MB / 0.499 GB, free: 88.46 MB / 410.7 MB " [Timeout remaining time 659] 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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.624279100913554]