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.001621/0.001621, allocations: 104.4 kB / 19.7 MB, free: 2.137 MB / 14.72 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.001839/0.001839, allocations: 217.5 kB / 22.99 MB, free: 4.965 MB / 14.72 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.405/1.405, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04713/0.04713, allocations: 9.25 MB / 322.4 MB, free: 9.844 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/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: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 68.16 kB / 448.9 MB, free: 14.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1076, allocations: 55.47 MB / 0.4926 GB, free: 6.527 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01077/0.1183, allocations: 8.502 MB / 0.5009 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005605/0.1239, allocations: 2.745 MB / 0.5035 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001138/0.1251, allocations: 47.81 kB / 0.5036 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001161/0.1262, allocations: 437 kB / 0.504 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003785/0.13, allocations: 1.587 MB / 0.5056 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005634/0.1306, allocations: 183.7 kB / 0.5057 GB, free: 8.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003905/0.1345, allocations: 2.826 MB / 0.5085 GB, free: 6.148 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001634/0.1361, allocations: 0.8801 MB / 0.5094 GB, free: 5.242 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002472/0.1386, allocations: 1.054 MB / 0.5104 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002614/0.1412, allocations: 1.506 MB / 0.5119 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004843/0.1417, allocations: 263.9 kB / 0.5121 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001452/0.1431, allocations: 0.7996 MB / 0.5129 GB, free: 1.613 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001248/0.1444, allocations: 1.359 MB / 0.5142 GB, free: 256 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2014/0.3458, allocations: 1.234 MB / 0.5154 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00557/0.3514, allocations: 5.474 MB / 0.5208 GB, free: 9.777 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.3514, allocations: 2.812 kB / 0.5208 GB, free: 9.777 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3514, allocations: 3.938 kB / 0.5208 GB, free: 9.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001498/0.3515, allocations: 0 / 0.5208 GB, free: 9.777 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.0131/0.3646, allocations: 5.232 MB / 0.5259 GB, free: 8.223 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.3647, allocations: 10.77 kB / 0.5259 GB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006608/0.3713, allocations: 1.833 MB / 0.5277 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003646/0.3749, allocations: 1.461 MB / 0.5291 GB, free: 7.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/0.3751, allocations: 173.3 kB / 0.5293 GB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007296/0.3758, allocations: 237.6 kB / 0.5295 GB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01437/0.3902, allocations: 8.947 MB / 0.5382 GB, free: 5.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.37e-05/0.3903, allocations: 31.38 kB / 0.5383 GB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003419/0.3906, allocations: 112.5 kB / 0.5384 GB, free: 5.113 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002879/0.3935, allocations: 2.017 MB / 0.5403 GB, free: 4.727 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01396/0.4075, allocations: 7.951 MB / 0.5481 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03845/0.4459, allocations: 25.99 MB / 0.5735 GB, free: 8.91 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006864/0.4528, allocations: 2.266 MB / 0.5757 GB, free: 6.648 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001595/0.4544, allocations: 0.9154 MB / 0.5766 GB, free: 5.734 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008239/0.4626, allocations: 3.718 MB / 0.5802 GB, free: 2.035 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.496e-05/0.4627, allocations: 47.88 kB / 0.5803 GB, free: 1.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 4.127e-06/0.4627, allocations: 4 kB / 0.5803 GB, free: 1.977 MB / 414.1 MB Notification: Performance of matching and sorting (n=193): time 0.01634/0.479, allocations: 6.411 MB / 0.5865 GB, free: 11.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.019e-05/0.4791, allocations: 73.41 kB / 0.5866 GB, free: 11.54 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004178/0.4833, allocations: 2.569 MB / 0.5891 GB, free: 8.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002545/0.4835, allocations: 53.69 kB / 0.5892 GB, free: 8.871 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00204/0.4856, allocations: 2.49 MB / 0.5916 GB, free: 6.391 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009298/0.4865, allocations: 0.7377 MB / 0.5923 GB, free: 5.664 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001424/0.4879, allocations: 0.9374 MB / 0.5932 GB, free: 4.715 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002117/0.4881, allocations: 353.9 kB / 0.5936 GB, free: 4.363 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002693/0.4908, allocations: 1.504 MB / 0.595 GB, free: 2.852 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004943/0.4958, allocations: 4.089 MB / 0.599 GB, free: 13.53 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008309/0.5041, allocations: 6.026 MB / 0.6049 GB, free: 6.609 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-05/0.5042, allocations: 28 kB / 0.6049 GB, free: 6.582 MB / 446.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01229/0.5165, allocations: 5.926 MB / 0.6107 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001151/0.5166, allocations: 47.98 kB / 0.6108 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000155/0.5167, allocations: 93.81 kB / 0.6109 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001577/0.5183, allocations: 0.5794 MB / 0.6114 GB, free: 56 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003504/0.5218, allocations: 0.9981 MB / 0.6124 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01205/0.5338, allocations: 8.848 MB / 0.6211 GB, free: 5.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00345/0.5373, allocations: 246.6 kB / 0.6213 GB, free: 5.672 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009016/0.5382, allocations: 280 kB / 0.6216 GB, free: 5.398 MB / 462.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.003959/0.5422, allocations: 1.722 MB / 0.6232 GB, free: 3.668 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005744/0.5427, allocations: 238.4 kB / 0.6235 GB, free: 3.434 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00509/0.5478, allocations: 2.601 MB / 0.626 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001098/0.5479, allocations: 35.98 kB / 0.626 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.928e-05/0.548, allocations: 4 kB / 0.626 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.724e-05/0.548, allocations: 7.969 kB / 0.626 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01396/0.5619, allocations: 6.064 MB / 0.632 GB, free: 10.63 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.45e-05/0.5619, allocations: 4 kB / 0.632 GB, free: 10.62 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009389/0.5629, allocations: 239.6 kB / 0.6322 GB, free: 10.39 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/0.564, allocations: 446.7 kB / 0.6326 GB, free: 9.945 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001386/0.5642, allocations: 39.98 kB / 0.6327 GB, free: 9.906 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009261/0.5734, allocations: 7.431 MB / 0.6399 GB, free: 2.18 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/0.5734, allocations: 7.938 kB / 0.6399 GB, free: 2.172 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00682/0.5803, allocations: 3.943 MB / 0.6438 GB, free: 14.15 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007916/0.581, allocations: 218.5 kB / 0.644 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005321/0.5816, allocations: 35.98 kB / 0.644 GB, free: 13.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/0.5827, allocations: 86.39 kB / 0.6441 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002935/0.583, allocations: 133 kB / 0.6442 GB, free: 13.69 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000122/0.5831, allocations: 51.98 kB / 0.6443 GB, free: 13.64 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003139/0.5862, allocations: 1.492 MB / 0.6457 GB, free: 12.12 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5862, allocations: 0 / 0.6457 GB, free: 12.12 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004434/0.5907, allocations: 0.8146 MB / 0.6465 GB, free: 11.31 MB / 494.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.0005322/0.5912, allocations: 169.2 kB / 0.6467 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007739/0.599, allocations: 4.009 MB / 0.6506 GB, free: 7.117 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.175e-06/0.599, allocations: 256 / 0.6506 GB, free: 7.117 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00253/0.6015, allocations: 1.535 MB / 0.6521 GB, free: 5.539 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001899/0.6034, allocations: 301.4 kB / 0.6524 GB, free: 5.25 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0182/0.6216, allocations: 7.748 MB / 0.66 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004217/0.6258, allocations: 2.259 MB / 0.6622 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007581/0.6266, allocations: 215.4 kB / 0.6624 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of SimCode: time 6.51e-07/0.6266, allocations: 0 / 0.6624 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of Templates: time 0.3239/0.9505, allocations: 96.48 MB / 0.7566 GB, free: 167.5 MB / 0.545 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: 11.861534517258406] Failed to read output from testmodel.py, exit status != 0: 0.9595761951059103 0.968558689 0.614858016 Calling exit ...