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.001402/0.001402, allocations: 88.72 kB / 19.44 MB, free: 352 kB / 13.93 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.001689/0.001689, allocations: 157.7 kB / 22.75 MB, free: 1.68 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.452/1.452, allocations: 177.1 MB / 203.1 MB, free: 5.445 MB / 186.7 MB " [Timeout remaining time 178] 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.05006/0.05006, allocations: 7.19 MB / 266.7 MB, free: 5.922 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.282e-06/1.282e-06, allocations: 0 / 338.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.402e-05/1.53e-05, allocations: 2.312 kB / 338.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.006655/0.00667, allocations: 8.587 MB / 346.7 MB, free: 1.926 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004733/0.0114, allocations: 2.77 MB / 349.5 MB, free: 15.15 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000808/0.01221, allocations: 43.81 kB / 349.5 MB, free: 15.11 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009518/0.01316, allocations: 444.8 kB / 350 MB, free: 14.67 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0035/0.01666, allocations: 1.644 MB / 351.6 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004321/0.01709, allocations: 191.5 kB / 351.8 MB, free: 12.83 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003503/0.0206, allocations: 2.93 MB / 354.7 MB, free: 9.887 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001564/0.02216, allocations: 0.9314 MB / 355.7 MB, free: 8.922 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002118/0.02428, allocations: 1.586 MB / 357.2 MB, free: 7.332 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002139/0.02642, allocations: 1.449 MB / 358.7 MB, free: 5.879 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004332/0.02685, allocations: 268 kB / 359 MB, free: 5.617 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001527/0.02838, allocations: 0.8542 MB / 359.8 MB, free: 4.762 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001477/0.02986, allocations: 1.418 MB / 361.2 MB, free: 3.34 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001223/0.03108, allocations: 0.9382 MB / 362.2 MB, free: 2.398 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006833/0.03791, allocations: 5.458 MB / 367.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.03791, allocations: 0 / 367.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.03792, allocations: 4 kB / 367.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.377e-05/0.03798, allocations: 0 / 367.6 MB, free: 12.92 MB / 298.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.0133/0.05128, allocations: 5.256 MB / 372.9 MB, free: 7.605 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.05132, allocations: 8.625 kB / 372.9 MB, free: 7.598 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007941/0.05926, allocations: 2.362 MB / 375.3 MB, free: 5.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002979/0.06224, allocations: 1.45 MB / 376.7 MB, free: 3.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/0.06244, allocations: 188.7 kB / 376.9 MB, free: 3.562 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007035/0.06314, allocations: 231.9 kB / 377.1 MB, free: 3.336 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01547/0.07861, allocations: 8.965 MB / 386.1 MB, free: 9.906 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.873e-05/0.0787, allocations: 31.75 kB / 386.1 MB, free: 9.875 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003533/0.07905, allocations: 115.8 kB / 386.2 MB, free: 9.762 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003671/0.08272, allocations: 2.013 MB / 388.2 MB, free: 7.746 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01682/0.09954, allocations: 7.928 MB / 396.2 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1558/0.2553, allocations: 26.26 MB / 422.4 MB, free: 58.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006645/0.262, allocations: 2.444 MB / 424.9 MB, free: 58.44 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/0.2633, allocations: 0.9313 MB / 425.8 MB, free: 58.42 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006799/0.2701, allocations: 3.995 MB / 429.8 MB, free: 57.21 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.2701, allocations: 53.7 kB / 429.8 MB, free: 57.16 MB / 330.7 MB Notification: Performance of pre-optimization done (n=155): time 3.376e-06/0.2701, allocations: 0 / 429.8 MB, free: 57.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=193): time 0.01376/0.2839, allocations: 6.653 MB / 436.5 MB, free: 55.11 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.632e-05/0.2839, allocations: 69.22 kB / 436.6 MB, free: 55.04 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002645/0.2865, allocations: 2.591 MB / 439.2 MB, free: 53.55 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.335e-05/0.2866, allocations: 57.52 kB / 439.2 MB, free: 53.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000774/0.2874, allocations: 2.492 MB / 441.7 MB, free: 51.08 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003327/0.2877, allocations: 0.7265 MB / 442.4 MB, free: 50.36 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009218/0.2886, allocations: 0.9412 MB / 443.4 MB, free: 49.41 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.16e-05/0.2887, allocations: 353.9 kB / 443.7 MB, free: 49.06 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001824/0.2905, allocations: 1.512 MB / 445.2 MB, free: 47.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00257/0.2931, allocations: 4.098 MB / 449.3 MB, free: 42.21 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004755/0.2979, allocations: 6.033 MB / 455.4 MB, free: 34.98 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.654e-05/0.2979, allocations: 24 kB / 455.4 MB, free: 34.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=623) (initialization): time 0.008369/0.3063, allocations: 6.196 MB / 461.6 MB, free: 28.75 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.75e-05/0.3063, allocations: 47.83 kB / 461.6 MB, free: 28.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.336e-05/0.3064, allocations: 92 kB / 461.7 MB, free: 28.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001909/0.3083, allocations: 0.7335 MB / 462.5 MB, free: 27.88 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002606/0.3109, allocations: 1.014 MB / 463.5 MB, free: 26.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008257/0.3192, allocations: 8.896 MB / 472.4 MB, free: 17.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003039/0.3222, allocations: 247.9 kB / 472.6 MB, free: 17.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004623/0.3227, allocations: 282.9 kB / 472.9 MB, free: 17.16 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * 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 (556): * Single equations (assignments): 549 * 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.002047/0.3247, allocations: 1.724 MB / 474.6 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004378/0.3252, allocations: 289.8 kB / 474.9 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003616/0.3288, allocations: 2.586 MB / 477.5 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.801e-05/0.3289, allocations: 27.98 kB / 477.5 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.3289, allocations: 8 kB / 477.5 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.3289, allocations: 7.969 kB / 477.5 MB, free: 12.49 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008827/0.3377, allocations: 6.083 MB / 483.6 MB, free: 6.332 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/0.3377, allocations: 4.562 kB / 483.6 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008162/0.3386, allocations: 243.6 kB / 483.8 MB, free: 6.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001535/0.3401, allocations: 0.5838 MB / 484.4 MB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.293e-05/0.3402, allocations: 40 kB / 484.5 MB, free: 5.461 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007771/0.348, allocations: 7.449 MB / 491.9 MB, free: 13.73 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.348, allocations: 8 kB / 491.9 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007077/0.355, allocations: 3.964 MB / 495.9 MB, free: 9.672 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006764/0.3557, allocations: 218.4 kB / 496.1 MB, free: 9.457 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002762/0.356, allocations: 35.52 kB / 496.1 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008936/0.3569, allocations: 91.95 kB / 496.2 MB, free: 9.336 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002998/0.3572, allocations: 133 kB / 496.4 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/0.3573, allocations: 51.98 kB / 496.4 MB, free: 9.156 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002553/0.3599, allocations: 1.501 MB / 497.9 MB, free: 7.637 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3599, allocations: 0 / 497.9 MB, free: 7.637 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003985/0.3638, allocations: 0.8124 MB / 498.7 MB, free: 6.824 MB / 346.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.0003957/0.3642, allocations: 176.8 kB / 498.9 MB, free: 6.645 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007354/0.3716, allocations: 4.021 MB / 0.4911 GB, free: 2.617 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.3716, allocations: 4.188 kB / 0.4911 GB, free: 2.613 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002636/0.3742, allocations: 1.523 MB / 0.4926 GB, free: 1.055 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001765/0.376, allocations: 334 kB / 0.4929 GB, free: 0.7461 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01428/0.3903, allocations: 7.403 MB / 0.5002 GB, free: 9.238 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003672/0.394, allocations: 2.264 MB / 0.5024 GB, free: 6.949 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00324/0.3972, allocations: 1.264 MB / 0.5036 GB, free: 5.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004636/0.3977, allocations: 168.5 kB / 0.5038 GB, free: 5.516 MB / 362.7 MB Notification: Performance of SimCode: time 1.844e-06/0.3977, allocations: 4 kB / 0.5038 GB, free: 5.512 MB / 362.7 MB Notification: Performance of Templates: time 0.0545/0.4522, allocations: 23.48 MB / 0.5267 GB, free: 14.42 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=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.865173315978609]