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.001354/0.001354, allocations: 81.55 kB / 19.76 MB, free: 2.027 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.001433/0.001433, allocations: 158.9 kB / 23.01 MB, free: 4.945 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.496/1.496, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.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.04756/0.04756, allocations: 7.131 MB / 266.9 MB, free: 9.707 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.002295/0.002295, allocations: 63.91 kB / 393.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09968/0.102, allocations: 55.46 MB / 448.8 MB, free: 2.902 MB / 414.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01119/0.1132, allocations: 8.495 MB / 457.3 MB, free: 10.36 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006234/0.1194, allocations: 2.757 MB / 460.1 MB, free: 7.598 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001634/0.121, allocations: 47.81 kB / 460.1 MB, free: 7.551 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001594/0.1226, allocations: 429 kB / 460.6 MB, free: 7.129 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005595/0.1282, allocations: 1.579 MB / 462.1 MB, free: 5.543 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000858/0.1291, allocations: 183.7 kB / 462.3 MB, free: 5.363 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005437/0.1345, allocations: 2.831 MB / 465.2 MB, free: 2.52 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001927/0.1365, allocations: 0.8763 MB / 466 MB, free: 1.617 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002209/0.1387, allocations: 1.047 MB / 467.1 MB, free: 0.5664 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003448/0.1421, allocations: 1.521 MB / 468.6 MB, free: 15.04 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009026/0.143, allocations: 260 kB / 468.9 MB, free: 14.79 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002378/0.1454, allocations: 0.7918 MB / 469.6 MB, free: 13.99 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002445/0.1478, allocations: 1.363 MB / 471 MB, free: 12.62 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00297/0.1508, allocations: 1.234 MB / 472.2 MB, free: 11.38 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009631/0.1604, allocations: 5.478 MB / 477.7 MB, free: 5.883 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1604, allocations: 4 kB / 477.7 MB, free: 5.879 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1604, allocations: 0 / 477.7 MB, free: 5.879 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001655/0.1606, allocations: 0 / 477.7 MB, free: 5.879 MB / 446.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.01975/0.1804, allocations: 5.279 MB / 483 MB, free: 0.543 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.1804, allocations: 8.625 kB / 483 MB, free: 0.5352 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.197/0.3774, allocations: 1.912 MB / 484.9 MB, free: 68.74 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00281/0.3802, allocations: 1.446 MB / 486.4 MB, free: 68.49 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.963e-05/0.3803, allocations: 172.4 kB / 486.5 MB, free: 68.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003686/0.3807, allocations: 226.7 kB / 486.8 MB, free: 68.48 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01123/0.3919, allocations: 8.938 MB / 495.7 MB, free: 64.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.217e-05/0.392, allocations: 25.92 kB / 495.7 MB, free: 64.79 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002929/0.3923, allocations: 118.9 kB / 495.8 MB, free: 64.74 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002636/0.3949, allocations: 2.006 MB / 497.8 MB, free: 64.35 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01222/0.4072, allocations: 7.905 MB / 0.4939 GB, free: 61.71 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03408/0.4412, allocations: 26.08 MB / 0.5194 GB, free: 44.17 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00725/0.4485, allocations: 2.381 MB / 0.5217 GB, free: 43.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001526/0.45, allocations: 0.9137 MB / 0.5226 GB, free: 43.24 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008195/0.4582, allocations: 3.77 MB / 0.5263 GB, free: 41.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.4582, allocations: 58.62 kB / 0.5263 GB, free: 41.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=155): time 4.008e-06/0.4582, allocations: 1.031 kB / 0.5263 GB, free: 41.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=193): time 0.0163/0.4745, allocations: 6.58 MB / 0.5327 GB, free: 39.63 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/0.4746, allocations: 77.05 kB / 0.5328 GB, free: 39.57 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003756/0.4783, allocations: 2.556 MB / 0.5353 GB, free: 38.47 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.555e-05/0.4784, allocations: 54.23 kB / 0.5354 GB, free: 38.41 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001327/0.4797, allocations: 2.477 MB / 0.5378 GB, free: 36.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005242/0.4803, allocations: 0.7411 MB / 0.5385 GB, free: 35.53 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001183/0.4815, allocations: 0.9457 MB / 0.5394 GB, free: 34.65 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.685e-05/0.4815, allocations: 348.7 kB / 0.5398 GB, free: 34.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002259/0.4838, allocations: 1.503 MB / 0.5412 GB, free: 33.05 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003356/0.4871, allocations: 4.072 MB / 0.5452 GB, free: 28.02 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005714/0.4929, allocations: 6.019 MB / 0.5511 GB, free: 21.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.476e-05/0.493, allocations: 24 kB / 0.5511 GB, free: 21.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.009085/0.502, allocations: 5.907 MB / 0.5569 GB, free: 15.88 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.928e-05/0.5021, allocations: 42.19 kB / 0.5569 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001302/0.5023, allocations: 92 kB / 0.557 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001414/0.5037, allocations: 0.577 MB / 0.5576 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00271/0.5064, allocations: 1.001 MB / 0.5585 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00875/0.5151, allocations: 8.859 MB / 0.5672 GB, free: 5.297 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003569/0.5187, allocations: 244.6 kB / 0.5674 GB, free: 5.059 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007053/0.5194, allocations: 291.8 kB / 0.5677 GB, free: 4.777 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.003046/0.5224, allocations: 1.716 MB / 0.5694 GB, free: 3.047 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005556/0.523, allocations: 234.5 kB / 0.5696 GB, free: 2.816 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003975/0.527, allocations: 2.585 MB / 0.5721 GB, free: 212 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.786e-05/0.5271, allocations: 31.92 kB / 0.5722 GB, free: 180 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-05/0.5271, allocations: 11.62 kB / 0.5722 GB, free: 172 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.556e-05/0.5271, allocations: 11.97 kB / 0.5722 GB, free: 160 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01326/0.5404, allocations: 6.054 MB / 0.5781 GB, free: 9.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/0.5404, allocations: 4 kB / 0.5781 GB, free: 9.977 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009753/0.5414, allocations: 243.5 kB / 0.5783 GB, free: 9.738 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001225/0.5426, allocations: 450.6 kB / 0.5788 GB, free: 9.289 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/0.5427, allocations: 35.98 kB / 0.5788 GB, free: 9.254 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01025/0.5529, allocations: 7.429 MB / 0.5861 GB, free: 1.523 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.314e-05/0.553, allocations: 11.88 kB / 0.5861 GB, free: 1.512 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007743/0.5607, allocations: 3.917 MB / 0.5899 GB, free: 13.51 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009875/0.5617, allocations: 214.5 kB / 0.5901 GB, free: 13.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005769/0.5623, allocations: 39.92 kB / 0.5901 GB, free: 13.26 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001154/0.5634, allocations: 83.84 kB / 0.5902 GB, free: 13.18 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000276/0.5637, allocations: 136.9 kB / 0.5903 GB, free: 13.05 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/0.5638, allocations: 56.06 kB / 0.5904 GB, free: 12.99 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002991/0.5668, allocations: 1.476 MB / 0.5918 GB, free: 11.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5668, allocations: 0 / 0.5918 GB, free: 11.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004391/0.5712, allocations: 0.8046 MB / 0.5926 GB, free: 10.69 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.0004304/0.5716, allocations: 170.9 kB / 0.5928 GB, free: 10.52 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007739/0.5794, allocations: 3.99 MB / 0.5967 GB, free: 6.516 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.378e-05/0.5794, allocations: 4 kB / 0.5967 GB, free: 6.512 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002601/0.582, allocations: 1.52 MB / 0.5982 GB, free: 4.949 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002201/0.5842, allocations: 297.4 kB / 0.5985 GB, free: 4.668 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01589/0.6001, allocations: 7.351 MB / 0.6056 GB, free: 13.23 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00423/0.6043, allocations: 2.256 MB / 0.6078 GB, free: 10.95 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003505/0.6078, allocations: 1.271 MB / 0.6091 GB, free: 9.668 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005891/0.6084, allocations: 172.5 kB / 0.6092 GB, free: 9.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.403e-06/0.6084, allocations: 0 / 0.6092 GB, free: 9.5 MB / 494.1 MB Notification: Performance of Templates: time 0.05433/0.6627, allocations: 23.28 MB / 0.632 GB, free: 2.543 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 -s ida -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.101320737972856] Failed to read output from testmodel.py, exit status != 0: 0.672521333093755 0.687129793 0.5234470290000001 Calling exit ...