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.001486/0.001486, allocations: 104.3 kB / 16.4 MB, free: 6.492 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.001461/0.001461, allocations: 195.7 kB / 19.36 MB, free: 3.75 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.428/1.428, allocations: 222.9 MB / 245.1 MB, free: 15.03 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.04758/0.04758, allocations: 9.14 MB / 306.4 MB, free: 3.777 MB / 238.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.001928/0.001928, allocations: 63.89 kB / 423.4 MB, free: 20.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09956/0.1015, allocations: 51.44 MB / 474.8 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01118/0.1127, allocations: 9.727 MB / 484.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006123/0.1189, allocations: 2.846 MB / 487.4 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001269/0.1202, allocations: 39.94 kB / 487.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.1212, allocations: 413.1 kB / 487.8 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00351/0.1248, allocations: 1.533 MB / 489.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005054/0.1253, allocations: 187.7 kB / 489.5 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003503/0.1288, allocations: 2.854 MB / 492.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001349/0.1302, allocations: 1.063 MB / 493.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001204/0.1314, allocations: 1.031 MB / 494.5 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001787/0.1332, allocations: 1.471 MB / 496 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004323/0.1337, allocations: 260 kB / 496.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001507/0.1352, allocations: 0.8544 MB / 497.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00126/0.1364, allocations: 1.348 MB / 498.4 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001678/0.1381, allocations: 1.767 MB / 0.4885 GB, free: 7.066 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005985/0.1441, allocations: 5.493 MB / 0.4938 GB, free: 1.551 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1441, allocations: 0 / 0.4938 GB, free: 1.551 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1442, allocations: 0 / 0.4938 GB, free: 1.551 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.038e-05/0.1442, allocations: 0 / 0.4938 GB, free: 1.551 MB / 366.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.0115/0.1557, allocations: 5.262 MB / 0.499 GB, free: 12.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.1558, allocations: 8.031 kB / 0.499 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006775/0.1626, allocations: 1.839 MB / 0.5008 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002527/0.1651, allocations: 1.509 MB / 0.5022 GB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/0.1653, allocations: 176.3 kB / 0.5024 GB, free: 8.625 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004723/0.1658, allocations: 231.8 kB / 0.5026 GB, free: 8.398 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2249/0.3906, allocations: 8.945 MB / 0.5114 GB, free: 39.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001109/0.3908, allocations: 34.14 kB / 0.5114 GB, free: 39.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003627/0.3911, allocations: 110 kB / 0.5115 GB, free: 39.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003294/0.3945, allocations: 2.015 MB / 0.5135 GB, free: 39.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01534/0.4098, allocations: 7.969 MB / 0.5212 GB, free: 36.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03773/0.4476, allocations: 28.54 MB / 0.5491 GB, free: 16.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006278/0.4539, allocations: 2.81 MB / 0.5519 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001337/0.4553, allocations: 0.9963 MB / 0.5528 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007106/0.4624, allocations: 6.478 MB / 0.5592 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.117e-05/0.4624, allocations: 43.88 kB / 0.5592 GB, free: 5.191 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 5.12e-06/0.4624, allocations: 0 / 0.5592 GB, free: 5.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=193): time 0.01402/0.4765, allocations: 6.546 MB / 0.5656 GB, free: 14.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.734e-05/0.4765, allocations: 70.44 kB / 0.5657 GB, free: 14.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004643/0.4812, allocations: 3.028 MB / 0.5686 GB, free: 11.67 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001046/0.4813, allocations: 53.7 kB / 0.5687 GB, free: 11.61 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002029/0.4834, allocations: 2.458 MB / 0.5711 GB, free: 9.129 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008297/0.4842, allocations: 0.7363 MB / 0.5718 GB, free: 8.387 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001498/0.4857, allocations: 0.9335 MB / 0.5727 GB, free: 7.441 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.4859, allocations: 305.1 kB / 0.573 GB, free: 7.141 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002692/0.4886, allocations: 1.5 MB / 0.5745 GB, free: 5.633 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004925/0.4935, allocations: 4.082 MB / 0.5784 GB, free: 284 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008725/0.5022, allocations: 6.029 MB / 0.5843 GB, free: 8.996 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.488e-05/0.5024, allocations: 28 kB / 0.5844 GB, free: 8.969 MB / 414.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01411/0.5165, allocations: 5.987 MB / 0.5902 GB, free: 2.961 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.5166, allocations: 47.94 kB / 0.5902 GB, free: 2.914 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001585/0.5168, allocations: 88 kB / 0.5903 GB, free: 2.828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001592/0.5184, allocations: 0.5765 MB / 0.5909 GB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003309/0.5217, allocations: 1.002 MB / 0.5919 GB, free: 1.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01226/0.534, allocations: 9.317 MB / 0.601 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003491/0.5375, allocations: 247.8 kB / 0.6012 GB, free: 7.254 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007172/0.5383, allocations: 280 kB / 0.6015 GB, free: 6.98 MB / 430.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.003376/0.5417, allocations: 1.723 MB / 0.6032 GB, free: 5.246 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005688/0.5422, allocations: 278.3 kB / 0.6034 GB, free: 4.973 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005042/0.5473, allocations: 2.656 MB / 0.606 GB, free: 2.293 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001297/0.5474, allocations: 36.34 kB / 0.606 GB, free: 2.258 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-05/0.5475, allocations: 8 kB / 0.6061 GB, free: 2.25 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.912e-05/0.5475, allocations: 7.969 kB / 0.6061 GB, free: 2.242 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01439/0.5619, allocations: 7.264 MB / 0.6132 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-05/0.5619, allocations: 7.938 kB / 0.6132 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000913/0.5629, allocations: 235.7 kB / 0.6134 GB, free: 10.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001226/0.5641, allocations: 454.4 kB / 0.6138 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001277/0.5643, allocations: 39.88 kB / 0.6139 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009929/0.5742, allocations: 7.874 MB / 0.6216 GB, free: 1.812 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-05/0.5743, allocations: 8 kB / 0.6216 GB, free: 1.805 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007946/0.5822, allocations: 4.002 MB / 0.6255 GB, free: 13.72 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/0.5834, allocations: 359.2 kB / 0.6258 GB, free: 13.35 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006263/0.584, allocations: 31.98 kB / 0.6258 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/0.5854, allocations: 79.91 kB / 0.6259 GB, free: 13.24 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004083/0.5859, allocations: 129.1 kB / 0.626 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001326/0.586, allocations: 56.27 kB / 0.6261 GB, free: 13.06 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004131/0.5902, allocations: 1.936 MB / 0.628 GB, free: 11.12 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5902, allocations: 0 / 0.628 GB, free: 11.12 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004538/0.5947, allocations: 0.8436 MB / 0.6288 GB, free: 10.27 MB / 462.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.0005142/0.5952, allocations: 166.9 kB / 0.629 GB, free: 10.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007598/0.6029, allocations: 4.149 MB / 0.633 GB, free: 5.938 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/0.6029, allocations: 4 kB / 0.633 GB, free: 5.934 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002607/0.6055, allocations: 1.607 MB / 0.6346 GB, free: 4.289 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002842/0.6084, allocations: 447.7 kB / 0.635 GB, free: 3.859 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0148/0.6232, allocations: 7.36 MB / 0.6422 GB, free: 12.42 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004195/0.6274, allocations: 2.808 MB / 0.6449 GB, free: 9.582 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003592/0.631, allocations: 1.321 MB / 0.6462 GB, free: 8.254 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007894/0.6318, allocations: 195.4 kB / 0.6464 GB, free: 8.062 MB / 478.1 MB Notification: Performance of SimCode: time 1.443e-06/0.6319, allocations: 0 / 0.6464 GB, free: 8.062 MB / 478.1 MB Notification: Performance of Templates: time 0.06572/0.6976, allocations: 29.75 MB / 0.6755 GB, free: 10.45 MB / 0.4981 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.2399038672447205]