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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001914/0.001914, allocations: 108.8 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002383/0.002383, allocations: 192.3 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04907/0.04907, allocations: 9.262 MB / 315.5 MB, free: 15.61 MB / 254.1 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001979/0.001979, allocations: 63.89 kB / 439.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.12, allocations: 54.3 MB / 494 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01223/0.1323, allocations: 9.797 MB / 0.492 GB, free: 10.87 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006548/0.1388, allocations: 2.869 MB / 0.4948 GB, free: 7.992 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001864/0.1407, allocations: 47.81 kB / 0.4949 GB, free: 7.945 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001313/0.142, allocations: 437 kB / 0.4953 GB, free: 7.516 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004379/0.1464, allocations: 1.583 MB / 0.4968 GB, free: 5.926 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006836/0.1471, allocations: 191.7 kB / 0.497 GB, free: 5.738 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004119/0.1512, allocations: 2.856 MB / 0.4998 GB, free: 2.871 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001378/0.1526, allocations: 0.8842 MB / 0.5007 GB, free: 1.961 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001714/0.1543, allocations: 1.058 MB / 0.5017 GB, free: 0.8984 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002287/0.1566, allocations: 1.596 MB / 0.5033 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006745/0.1572, allocations: 260 kB / 0.5035 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00171/0.1589, allocations: 0.9011 MB / 0.5044 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001531/0.1605, allocations: 1.382 MB / 0.5058 GB, free: 12.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002001/0.1625, allocations: 1.763 MB / 0.5075 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007378/0.1698, allocations: 5.501 MB / 0.5128 GB, free: 5.457 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.1699, allocations: 0 / 0.5128 GB, free: 5.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1699, allocations: 0 / 0.5128 GB, free: 5.457 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001852/0.17, allocations: 0 / 0.5128 GB, free: 5.457 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.0135/0.1835, allocations: 5.197 MB / 0.5179 GB, free: 208 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.1836, allocations: 12.62 kB / 0.5179 GB, free: 196 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2486/0.4322, allocations: 1.815 MB / 0.5197 GB, free: 32.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003602/0.4358, allocations: 1.452 MB / 0.5211 GB, free: 32.03 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/0.4359, allocations: 176 kB / 0.5213 GB, free: 32.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000708/0.4367, allocations: 234 kB / 0.5215 GB, free: 32.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.015/0.4517, allocations: 8.948 MB / 0.5303 GB, free: 28.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.621e-05/0.4517, allocations: 38.08 kB / 0.5303 GB, free: 28.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002921/0.452, allocations: 112.5 kB / 0.5304 GB, free: 28.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003289/0.4553, allocations: 2.012 MB / 0.5324 GB, free: 28.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01612/0.4714, allocations: 7.974 MB / 0.5401 GB, free: 25.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03687/0.5083, allocations: 28.47 MB / 0.568 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007296/0.5156, allocations: 2.271 MB / 0.5702 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001787/0.5174, allocations: 0.9185 MB / 0.5711 GB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00904/0.5264, allocations: 4.088 MB / 0.5751 GB, free: 5.785 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.558e-05/0.5265, allocations: 51.81 kB / 0.5751 GB, free: 5.723 MB / 398.1 MB Notification: Performance of pre-optimization done (n=155): time 4.188e-06/0.5265, allocations: 0 / 0.5751 GB, free: 5.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=193): time 0.01748/0.544, allocations: 6.452 MB / 0.5814 GB, free: 15.27 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/0.544, allocations: 69.41 kB / 0.5815 GB, free: 15.2 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004845/0.5489, allocations: 3.024 MB / 0.5844 GB, free: 12.16 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.549, allocations: 49.7 kB / 0.5845 GB, free: 12.11 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001992/0.551, allocations: 2.458 MB / 0.5869 GB, free: 9.625 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007896/0.5518, allocations: 0.7401 MB / 0.5876 GB, free: 8.879 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001479/0.5533, allocations: 0.9374 MB / 0.5885 GB, free: 7.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000201/0.5535, allocations: 301.1 kB / 0.5888 GB, free: 7.633 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002655/0.5561, allocations: 1.504 MB / 0.5903 GB, free: 6.121 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004683/0.5608, allocations: 4.082 MB / 0.5943 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008033/0.5688, allocations: 6.027 MB / 0.6001 GB, free: 9.477 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.344e-05/0.5689, allocations: 24 kB / 0.6002 GB, free: 9.453 MB / 430.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.012/0.5809, allocations: 5.969 MB / 0.606 GB, free: 3.473 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/0.581, allocations: 48.25 kB / 0.606 GB, free: 3.426 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001658/0.5812, allocations: 88.94 kB / 0.6061 GB, free: 3.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001582/0.5828, allocations: 0.5712 MB / 0.6067 GB, free: 2.762 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003167/0.5859, allocations: 1.006 MB / 0.6077 GB, free: 1.754 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0125/0.5984, allocations: 9.026 MB / 0.6165 GB, free: 8.379 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004119/0.6025, allocations: 239.9 kB / 0.6167 GB, free: 8.145 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009493/0.6035, allocations: 276 kB / 0.617 GB, free: 7.875 MB / 446.1 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 (548): * Single equations (assignments): 541 * 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.004378/0.6079, allocations: 1.728 MB / 0.6187 GB, free: 6.141 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000808/0.6087, allocations: 286.1 kB / 0.6189 GB, free: 5.859 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006109/0.6148, allocations: 2.641 MB / 0.6215 GB, free: 3.195 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000132/0.6149, allocations: 31.98 kB / 0.6215 GB, free: 3.164 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.87e-05/0.615, allocations: 8 kB / 0.6215 GB, free: 3.156 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.353e-05/0.615, allocations: 7.969 kB / 0.6216 GB, free: 3.148 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01743/0.6324, allocations: 7.198 MB / 0.6286 GB, free: 11.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.058e-05/0.6324, allocations: 4 kB / 0.6286 GB, free: 11.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.6335, allocations: 240.2 kB / 0.6288 GB, free: 11.56 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001229/0.6347, allocations: 446.1 kB / 0.6292 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000172/0.6349, allocations: 39.98 kB / 0.6293 GB, free: 11.08 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009891/0.6448, allocations: 7.563 MB / 0.6367 GB, free: 3.172 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.044e-05/0.6448, allocations: 7.938 kB / 0.6367 GB, free: 3.164 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007676/0.6524, allocations: 3.994 MB / 0.6406 GB, free: 15.09 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/0.6535, allocations: 278.1 kB / 0.6408 GB, free: 14.81 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006984/0.6542, allocations: 35.98 kB / 0.6409 GB, free: 14.78 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001413/0.6556, allocations: 87.84 kB / 0.641 GB, free: 14.69 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003437/0.656, allocations: 129 kB / 0.6411 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001315/0.6561, allocations: 59.98 kB / 0.6411 GB, free: 14.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004226/0.6603, allocations: 1.936 MB / 0.643 GB, free: 12.56 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6603, allocations: 0 / 0.643 GB, free: 12.56 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004815/0.6651, allocations: 0.8359 MB / 0.6438 GB, free: 11.73 MB / 478.1 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.000519/0.6657, allocations: 166.9 kB / 0.644 GB, free: 11.55 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008514/0.6742, allocations: 4.012 MB / 0.6479 GB, free: 7.527 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.939e-06/0.6742, allocations: 256 / 0.6479 GB, free: 7.527 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002853/0.677, allocations: 1.539 MB / 0.6494 GB, free: 5.945 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002942/0.68, allocations: 458.6 kB / 0.6499 GB, free: 5.508 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01709/0.6971, allocations: 7.414 MB / 0.6571 GB, free: 14 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004429/0.7015, allocations: 2.808 MB / 0.6598 GB, free: 11.16 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003783/0.7053, allocations: 1.321 MB / 0.6611 GB, free: 9.836 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007102/0.706, allocations: 199.4 kB / 0.6613 GB, free: 9.641 MB / 494.1 MB Notification: Performance of SimCode: time 1.613e-06/0.706, allocations: 0 / 0.6613 GB, free: 9.641 MB / 494.1 MB Notification: Performance of Templates: time 0.07171/0.7777, allocations: 33.31 MB / 0.6939 GB, free: 8.465 MB / 0.5137 GB " [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=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.637501139193773] Failed to read output from testmodel.py, exit status != 0: 0.7869249619543552 0.805222534 0.631753789 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f39ef6217b0>