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.001318/0.001318, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001546/0.001546, allocations: 173.3 kB / 23.49 MB, free: 1.059 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 1.014/1.014, allocations: 177.1 MB / 203.8 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo): time 0.03028/0.03028, allocations: 7.172 MB / 267.5 MB, free: 6.125 MB / 250.7 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.7.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.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.503e-06/1.503e-06, allocations: 0 / 338.9 MB, free: 10.58 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.495e-05/1.645e-05, allocations: 6.312 kB / 338.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.006938/0.006954, allocations: 9.442 MB / 348.3 MB, free: 1.086 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00384/0.01079, allocations: 2.853 MB / 351.2 MB, free: 14.23 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005381/0.01133, allocations: 43.88 kB / 351.2 MB, free: 14.18 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007225/0.01205, allocations: 440.8 kB / 351.6 MB, free: 13.75 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002278/0.01433, allocations: 1.641 MB / 353.3 MB, free: 12.1 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.01458, allocations: 187.6 kB / 353.5 MB, free: 11.92 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001785/0.01637, allocations: 2.933 MB / 356.4 MB, free: 8.973 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009449/0.01731, allocations: 0.9314 MB / 357.3 MB, free: 8.008 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.01838, allocations: 1.594 MB / 358.9 MB, free: 6.41 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.01957, allocations: 1.457 MB / 360.4 MB, free: 4.949 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000267/0.01984, allocations: 264 kB / 360.6 MB, free: 4.691 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009088/0.02075, allocations: 0.8541 MB / 361.5 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007853/0.02153, allocations: 1.418 MB / 362.9 MB, free: 2.414 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008766/0.02241, allocations: 0.946 MB / 363.9 MB, free: 1.465 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002933/0.02534, allocations: 3.63 MB / 367.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.02535, allocations: 4 kB / 367.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.02535, allocations: 0 / 367.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.603e-05/0.02543, allocations: 0 / 367.5 MB, free: 13.82 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1310 * Number of variables: 1310 Notification: Performance of Generate backend data structure: time 0.007554/0.03299, allocations: 5.543 MB / 373 MB, free: 8.211 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.03302, allocations: 8.625 kB / 373 MB, free: 8.203 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004366/0.03739, allocations: 2.284 MB / 375.3 MB, free: 5.914 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/0.03892, allocations: 1.382 MB / 376.7 MB, free: 4.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.844e-05/0.03901, allocations: 176.8 kB / 376.9 MB, free: 4.324 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002776/0.03929, allocations: 239.9 kB / 377.1 MB, free: 4.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006706/0.04599, allocations: 4.769 MB / 381.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.125e-05/0.04607, allocations: 31.77 kB / 381.9 MB, free: 14.67 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002364/0.0463, allocations: 103.9 kB / 382 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002148/0.04845, allocations: 2.017 MB / 384 MB, free: 12.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006119/0.05457, allocations: 2.756 MB / 386.8 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1602/0.2148, allocations: 29.99 MB / 416.8 MB, free: 53.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004245/0.219, allocations: 1.427 MB / 418.2 MB, free: 53.28 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006508/0.2197, allocations: 407.9 kB / 418.6 MB, free: 53.26 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004787/0.2245, allocations: 3.399 MB / 422 MB, free: 52.87 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/0.2245, allocations: 45.64 kB / 422.1 MB, free: 52.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=155): time 3.927e-06/0.2245, allocations: 3.406 kB / 422.1 MB, free: 52.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=193): time 0.008184/0.2327, allocations: 4.565 MB / 426.6 MB, free: 52.06 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/0.2327, allocations: 71.38 kB / 426.7 MB, free: 52 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00202/0.2348, allocations: 2.27 MB / 429 MB, free: 51.56 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.127e-05/0.2348, allocations: 50.02 kB / 429 MB, free: 51.53 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008366/0.2357, allocations: 2.6 MB / 431.6 MB, free: 49.84 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003732/0.236, allocations: 0.7617 MB / 432.4 MB, free: 49.28 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007573/0.2368, allocations: 1.007 MB / 433.4 MB, free: 48.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.558e-05/0.2369, allocations: 0.5177 MB / 433.9 MB, free: 48.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008494/0.2377, allocations: 0.5051 MB / 434.4 MB, free: 48.16 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001677/0.2394, allocations: 4.304 MB / 438.7 MB, free: 42.78 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003049/0.2424, allocations: 5.32 MB / 444 MB, free: 36.01 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.478e-05/0.2425, allocations: 30.94 kB / 444.1 MB, free: 35.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=623) (initialization): time 0.006164/0.2486, allocations: 4.094 MB / 448.1 MB, free: 32.08 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.045e-05/0.2487, allocations: 47.94 kB / 448.2 MB, free: 32.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.811e-05/0.2488, allocations: 88.91 kB / 448.3 MB, free: 31.95 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001336/0.2501, allocations: 0.5403 MB / 448.8 MB, free: 31.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002139/0.2522, allocations: 1.014 MB / 449.8 MB, free: 30.38 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005875/0.2581, allocations: 8.32 MB / 458.2 MB, free: 21.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/0.2606, allocations: 239.9 kB / 458.4 MB, free: 21.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002939/0.2609, allocations: 280 kB / 458.7 MB, free: 21.2 MB / 330.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 (556): * Single equations (assignments): 549 * 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.001038/0.2619, allocations: 0.5211 MB / 459.2 MB, free: 20.67 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003141/0.2622, allocations: 290 kB / 459.5 MB, free: 20.39 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002161/0.2644, allocations: 1.415 MB / 460.9 MB, free: 18.95 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-05/0.2645, allocations: 27.98 kB / 460.9 MB, free: 18.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.2645, allocations: 8 kB / 460.9 MB, free: 18.92 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.2645, allocations: 7.969 kB / 460.9 MB, free: 18.91 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006941/0.2714, allocations: 4.768 MB / 465.7 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.2714, allocations: 4 kB / 465.7 MB, free: 14.03 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006338/0.2721, allocations: 239.6 kB / 465.9 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001/0.2731, allocations: 408 kB / 466.3 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.364e-05/0.2732, allocations: 47.92 kB / 466.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004044/0.2772, allocations: 7.066 MB / 473.4 MB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.2772, allocations: 12 kB / 473.5 MB, free: 5.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002707/0.2799, allocations: 2.027 MB / 475.5 MB, free: 3.793 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003426/0.2803, allocations: 214.5 kB / 475.7 MB, free: 3.582 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002011/0.2805, allocations: 32 kB / 475.7 MB, free: 3.551 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005975/0.2811, allocations: 83.89 kB / 475.8 MB, free: 3.469 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002254/0.2813, allocations: 129 kB / 475.9 MB, free: 3.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.197e-05/0.2814, allocations: 59.98 kB / 476 MB, free: 3.281 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001197/0.2826, allocations: 0.9969 MB / 477 MB, free: 2.266 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2826, allocations: 4 kB / 477 MB, free: 2.262 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003003/0.2856, allocations: 0.8157 MB / 477.8 MB, free: 1.449 MB / 330.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.0002954/0.2859, allocations: 166.9 kB / 478 MB, free: 1.277 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004032/0.2899, allocations: 2.898 MB / 480.9 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.2899, allocations: 0 / 480.9 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/0.2913, allocations: 1.252 MB / 482.1 MB, free: 13.04 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.2924, allocations: 328.6 kB / 482.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007833/0.3002, allocations: 6.143 MB / 488.6 MB, free: 6.453 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009233/0.3011, allocations: 1.026 MB / 489.6 MB, free: 5.406 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001669/0.3028, allocations: 1.105 MB / 490.7 MB, free: 4.301 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002811/0.3031, allocations: 176.5 kB / 490.9 MB, free: 4.129 MB / 346.7 MB Notification: Performance of SimCode: time 1.443e-06/0.3031, allocations: 0 / 490.9 MB, free: 4.129 MB / 346.7 MB Notification: Performance of Templates: time 0.03514/0.3382, allocations: 23.51 MB / 0.5023 GB, free: 13 MB / 378.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=240 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.8414396229200065]