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.00132/0.00132, allocations: 80.06 kB / 19.18 MB, free: 2.516 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.001442/0.001442, allocations: 166.4 kB / 22.46 MB, free: 5.375 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.414/1.414, allocations: 177.1 MB / 202.8 MB, free: 9.168 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.04732/0.04732, allocations: 7.119 MB / 266.3 MB, free: 9.766 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: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 392.9 MB, free: 9.223 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.314e-05/2.447e-05, allocations: 10.28 kB / 392.9 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01052/0.01054, allocations: 8.507 MB / 401.4 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006222/0.01676, allocations: 2.756 MB / 404.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001223/0.01799, allocations: 47.81 kB / 404.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001312/0.0193, allocations: 436.9 kB / 404.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004471/0.02377, allocations: 1.629 MB / 406.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006161/0.02439, allocations: 191.5 kB / 406.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004218/0.0286, allocations: 2.891 MB / 409.3 MB, free: 8.695 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001563/0.03017, allocations: 0.8917 MB / 410.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002195/0.03236, allocations: 1.578 MB / 411.8 MB, free: 6.191 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002107/0.03447, allocations: 1.445 MB / 413.2 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004129/0.03488, allocations: 256 kB / 413.5 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00154/0.03642, allocations: 0.8542 MB / 414.3 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001345/0.03777, allocations: 1.406 MB / 415.8 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001221/0.03899, allocations: 0.9421 MB / 416.7 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00635/0.04534, allocations: 5.431 MB / 422.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.04534, allocations: 4 kB / 422.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.04534, allocations: 0 / 422.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001109/0.04546, allocations: 4 kB / 422.1 MB, free: 11.82 MB / 350.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.01325/0.0587, allocations: 5.241 MB / 427.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.05874, allocations: 8.625 kB / 427.4 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00741/0.06615, allocations: 1.902 MB / 429.3 MB, free: 4.609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002855/0.06901, allocations: 1.446 MB / 430.7 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.06917, allocations: 172.7 kB / 430.9 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004918/0.06966, allocations: 231.9 kB / 431.1 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01473/0.08439, allocations: 8.94 MB / 440.1 MB, free: 9.332 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.544e-05/0.08448, allocations: 27.77 kB / 440.1 MB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003459/0.08482, allocations: 107.8 kB / 440.2 MB, free: 9.199 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003696/0.08852, allocations: 2.017 MB / 442.2 MB, free: 7.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1794/0.2679, allocations: 7.898 MB / 450.1 MB, free: 57.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03348/0.3014, allocations: 26.01 MB / 476.1 MB, free: 40.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006934/0.3083, allocations: 2.395 MB / 478.5 MB, free: 39.67 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001323/0.3097, allocations: 0.9146 MB / 479.4 MB, free: 39.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006956/0.3166, allocations: 3.76 MB / 483.2 MB, free: 37.42 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.3167, allocations: 48.72 kB / 483.2 MB, free: 37.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=155): time 5.45e-06/0.3167, allocations: 0 / 483.2 MB, free: 37.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=193): time 0.01423/0.3309, allocations: 6.59 MB / 489.8 MB, free: 31.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.3309, allocations: 69.41 kB / 489.9 MB, free: 30.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002795/0.3337, allocations: 2.558 MB / 492.5 MB, free: 28.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001027/0.3338, allocations: 49.7 kB / 492.5 MB, free: 28.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008127/0.3347, allocations: 2.459 MB / 495 MB, free: 25.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003583/0.335, allocations: 0.7336 MB / 495.7 MB, free: 25.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009543/0.336, allocations: 0.9294 MB / 496.6 MB, free: 24.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.483e-05/0.336, allocations: 353.9 kB / 497 MB, free: 23.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001876/0.3379, allocations: 1.493 MB / 498.5 MB, free: 22.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002719/0.3406, allocations: 4.075 MB / 0.4908 GB, free: 17.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005126/0.3458, allocations: 6.025 MB / 0.4966 GB, free: 9.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.547e-05/0.3458, allocations: 31.94 kB / 0.4967 GB, free: 9.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.00832/0.3541, allocations: 5.901 MB / 0.5024 GB, free: 3.832 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.347e-05/0.3542, allocations: 47.98 kB / 0.5025 GB, free: 3.785 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.395e-05/0.3543, allocations: 92 kB / 0.5026 GB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001311/0.3556, allocations: 0.5769 MB / 0.5031 GB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00268/0.3582, allocations: 0.9981 MB / 0.5041 GB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0113/0.3695, allocations: 8.854 MB / 0.5128 GB, free: 8.953 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003168/0.3727, allocations: 240.4 kB / 0.513 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004965/0.3732, allocations: 275.8 kB / 0.5133 GB, free: 8.453 MB / 382.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.002796/0.376, allocations: 1.72 MB / 0.5149 GB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003904/0.3764, allocations: 230.5 kB / 0.5152 GB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004802/0.3812, allocations: 2.597 MB / 0.5177 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001195/0.3813, allocations: 42.98 kB / 0.5177 GB, free: 3.832 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/0.3813, allocations: 7.938 kB / 0.5177 GB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.749e-05/0.3813, allocations: 7.969 kB / 0.5177 GB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01168/0.393, allocations: 6.042 MB / 0.5236 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.38e-05/0.393, allocations: 4 kB / 0.5236 GB, free: 13.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.394, allocations: 244.2 kB / 0.5239 GB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001231/0.3953, allocations: 450 kB / 0.5243 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001258/0.3954, allocations: 48.05 kB / 0.5244 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009475/0.4049, allocations: 7.405 MB / 0.5316 GB, free: 5.254 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.4049, allocations: 4 kB / 0.5316 GB, free: 5.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006695/0.4116, allocations: 3.915 MB / 0.5354 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005973/0.4122, allocations: 214.8 kB / 0.5356 GB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002975/0.4125, allocations: 38.02 kB / 0.5357 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000913/0.4134, allocations: 91.83 kB / 0.5357 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002834/0.4137, allocations: 132.9 kB / 0.5359 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001288/0.4138, allocations: 64.11 kB / 0.5359 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002384/0.4162, allocations: 1.476 MB / 0.5374 GB, free: 15.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4162, allocations: 3.938 kB / 0.5374 GB, free: 15.23 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003747/0.4199, allocations: 0.8066 MB / 0.5382 GB, free: 14.42 MB / 414.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.0003962/0.4203, allocations: 168.6 kB / 0.5383 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006835/0.4272, allocations: 3.989 MB / 0.5422 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.4272, allocations: 0 / 0.5422 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002479/0.4296, allocations: 1.518 MB / 0.5437 GB, free: 8.695 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001641/0.4313, allocations: 296.9 kB / 0.544 GB, free: 8.406 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01218/0.4435, allocations: 7.284 MB / 0.5511 GB, free: 1.039 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003284/0.4468, allocations: 2.257 MB / 0.5533 GB, free: 14.75 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003041/0.4498, allocations: 1.267 MB / 0.5545 GB, free: 13.48 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004656/0.4503, allocations: 168.5 kB / 0.5547 GB, free: 13.31 MB / 430.1 MB Notification: Performance of SimCode: time 1.273e-06/0.4503, allocations: 0 / 0.5547 GB, free: 13.31 MB / 430.1 MB Notification: Performance of Templates: time 0.05338/0.5036, allocations: 23.21 MB / 0.5774 GB, free: 6.461 MB / 446.1 MB " [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: 5.829581543803215] Failed to read output from testmodel.py, exit status != 0: 0.5127384513616562 0.527013418 0.478527747 Calling exit ...