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.0008029/0.0008029, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007927/0.0007927, allocations: 177.9 kB / 23.21 MB, free: 1.348 MB / 18.57 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 0.847/0.847, allocations: 177.2 MB / 203.5 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.02629/0.02629, allocations: 7.114 MB / 267.1 MB, free: 6.312 MB / 250.7 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.273e-06/1.273e-06, allocations: 0 / 393.6 MB, free: 3.504 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.74e-05/1.867e-05, allocations: 5.656 kB / 393.6 MB, free: 3.5 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.005941/0.005959, allocations: 8.511 MB / 402.2 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00311/0.009069, allocations: 2.752 MB / 404.9 MB, free: 8.184 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003923/0.009462, allocations: 47.81 kB / 405 MB, free: 8.137 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006013/0.01006, allocations: 436.9 kB / 405.4 MB, free: 7.707 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00162/0.01168, allocations: 1.633 MB / 407 MB, free: 6.066 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002185/0.0119, allocations: 179.5 kB / 407.2 MB, free: 5.891 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0018/0.0137, allocations: 2.902 MB / 410.1 MB, free: 2.98 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006306/0.01433, allocations: 0.8955 MB / 411 MB, free: 2.055 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009696/0.0153, allocations: 1.574 MB / 412.6 MB, free: 488 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1308/0.1461, allocations: 1.442 MB / 414 MB, free: 17.34 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005275/0.1466, allocations: 261.3 kB / 414.3 MB, free: 17.34 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001166/0.1478, allocations: 0.8586 MB / 415.1 MB, free: 17.34 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007879/0.1485, allocations: 1.407 MB / 416.5 MB, free: 17.34 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007366/0.1493, allocations: 0.9379 MB / 417.5 MB, free: 17.34 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004046/0.1533, allocations: 5.438 MB / 422.9 MB, free: 16.92 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1533, allocations: 3.938 kB / 422.9 MB, free: 16.91 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1533, allocations: 0 / 422.9 MB, free: 16.91 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.832e-05/0.1534, allocations: 1.188 kB / 422.9 MB, free: 16.91 MB / 330.7 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.007024/0.1604, allocations: 5.237 MB / 428.1 MB, free: 14.76 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.1604, allocations: 9.75 kB / 428.2 MB, free: 14.76 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003361/0.1638, allocations: 1.841 MB / 430 MB, free: 14.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001549/0.1654, allocations: 1.459 MB / 431.5 MB, free: 13.2 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.116e-05/0.1654, allocations: 178.5 kB / 431.6 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003169/0.1658, allocations: 229.1 kB / 431.8 MB, free: 13.1 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006595/0.1724, allocations: 8.97 MB / 440.8 MB, free: 8.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.596e-05/0.1724, allocations: 39.03 kB / 440.9 MB, free: 8.059 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002294/0.1726, allocations: 108.1 kB / 441 MB, free: 8.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001424/0.1741, allocations: 2.014 MB / 443 MB, free: 6.566 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007089/0.1812, allocations: 7.972 MB / 450.9 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02035/0.2015, allocations: 26.05 MB / 477 MB, free: 4.484 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003892/0.2054, allocations: 2.397 MB / 479.4 MB, free: 2.098 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008877/0.2063, allocations: 0.9079 MB / 480.3 MB, free: 1.191 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004664/0.211, allocations: 3.773 MB / 484.1 MB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.211, allocations: 51.81 kB / 484.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=155): time 3.957e-06/0.211, allocations: 3.938 kB / 484.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=193): time 0.009521/0.2205, allocations: 6.615 MB / 490.7 MB, free: 6.812 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.2205, allocations: 77.33 kB / 490.8 MB, free: 6.723 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002211/0.2228, allocations: 2.573 MB / 493.4 MB, free: 4.109 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.511e-05/0.2228, allocations: 53.38 kB / 493.4 MB, free: 4.055 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000926/0.2237, allocations: 2.468 MB / 495.9 MB, free: 1.598 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003393/0.2241, allocations: 0.7257 MB / 496.6 MB, free: 0.8789 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008417/0.2249, allocations: 0.94 MB / 497.6 MB, free: 15.95 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003356/0.2253, allocations: 349.9 kB / 497.9 MB, free: 15.6 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001529/0.2268, allocations: 1.5 MB / 499.4 MB, free: 14.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002493/0.2293, allocations: 4.083 MB / 0.4917 GB, free: 8.773 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004344/0.2336, allocations: 6.032 MB / 0.4976 GB, free: 1.531 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.2e-05/0.2336, allocations: 28 kB / 0.4976 GB, free: 1.504 MB / 394.7 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.00579/0.2394, allocations: 5.923 MB / 0.5034 GB, free: 11.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.891e-05/0.2395, allocations: 44 kB / 0.5034 GB, free: 11.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-05/0.2395, allocations: 88.91 kB / 0.5035 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000816/0.2403, allocations: 0.5804 MB / 0.5041 GB, free: 10.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001791/0.2421, allocations: 1.01 MB / 0.5051 GB, free: 9.852 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006661/0.2488, allocations: 8.858 MB / 0.5137 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001476/0.2503, allocations: 240.1 kB / 0.514 GB, free: 468 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002248/0.2505, allocations: 282.3 kB / 0.5142 GB, free: 188 kB / 410.7 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.002192/0.2527, allocations: 1.716 MB / 0.5159 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001899/0.2529, allocations: 234.4 kB / 0.5161 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002613/0.2555, allocations: 2.604 MB / 0.5187 GB, free: 11.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.548e-05/0.2555, allocations: 35.92 kB / 0.5187 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/0.2556, allocations: 4 kB / 0.5187 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.2556, allocations: 7.969 kB / 0.5187 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006714/0.2623, allocations: 6.077 MB / 0.5247 GB, free: 5.402 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.2623, allocations: 4 kB / 0.5247 GB, free: 5.398 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004755/0.2628, allocations: 244.2 kB / 0.5249 GB, free: 5.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006017/0.2634, allocations: 447.5 kB / 0.5253 GB, free: 4.715 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.918e-05/0.2634, allocations: 39.98 kB / 0.5254 GB, free: 4.676 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00515/0.2686, allocations: 7.411 MB / 0.5326 GB, free: 12.96 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.2686, allocations: 7.938 kB / 0.5326 GB, free: 12.96 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00374/0.2723, allocations: 3.936 MB / 0.5364 GB, free: 8.941 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002773/0.2726, allocations: 214.5 kB / 0.5366 GB, free: 8.73 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001437/0.2727, allocations: 40 kB / 0.5367 GB, free: 8.691 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004308/0.2732, allocations: 83.91 kB / 0.5368 GB, free: 8.609 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.2733, allocations: 133.6 kB / 0.5369 GB, free: 8.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.744e-05/0.2734, allocations: 54.72 kB / 0.5369 GB, free: 8.43 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001433/0.2748, allocations: 1.496 MB / 0.5384 GB, free: 6.914 MB / 442.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2748, allocations: 0 / 0.5384 GB, free: 6.914 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002367/0.2772, allocations: 0.8046 MB / 0.5392 GB, free: 6.109 MB / 442.7 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.0002874/0.2775, allocations: 178.6 kB / 0.5394 GB, free: 5.926 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003981/0.2814, allocations: 4.003 MB / 0.5433 GB, free: 1.902 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.2815, allocations: 4 kB / 0.5433 GB, free: 1.898 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.2827, allocations: 1.532 MB / 0.5448 GB, free: 344 kB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000841/0.2835, allocations: 298.6 kB / 0.5451 GB, free: 44 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008282/0.2918, allocations: 7.673 MB / 0.5525 GB, free: 8.281 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002145/0.2939, allocations: 2.257 MB / 0.5548 GB, free: 5.992 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003657/0.2943, allocations: 216.4 kB / 0.555 GB, free: 5.781 MB / 458.7 MB Notification: Performance of SimCode: time 1.213e-06/0.2943, allocations: 0 / 0.555 GB, free: 5.781 MB / 458.7 MB Notification: Performance of Templates: time 0.1869/0.4812, allocations: 96.46 MB / 0.6492 GB, free: 97.46 MB / 474.7 MB " [Timeout remaining time 660] 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: 7.115738288499415] Failed to read output from testmodel.py, exit status != 0: 0.4863799763843417 0.491631293 0.337106561 Calling exit ...