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.001058/0.001058, allocations: 93.06 kB / 19.65 MB, free: 284 kB / 13.93 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.0009504/0.0009504, allocations: 165 kB / 23.02 MB, free: 1.559 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.9927/0.9927, allocations: 177.1 MB / 203.4 MB, free: 5.645 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.02985/0.02985, allocations: 7.185 MB / 267.1 MB, free: 6.062 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.633e-06/1.633e-06, allocations: 0 / 338.8 MB, free: 10.23 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.048e-05/2.211e-05, allocations: 2.312 kB / 338.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.007499/0.007521, allocations: 9.465 MB / 348.3 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003517/0.01104, allocations: 2.861 MB / 351.2 MB, free: 13.84 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004307/0.01147, allocations: 43.88 kB / 351.2 MB, free: 13.8 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005995/0.01207, allocations: 440.8 kB / 351.7 MB, free: 13.37 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00186/0.01393, allocations: 1.644 MB / 353.3 MB, free: 11.71 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002481/0.01418, allocations: 187.6 kB / 353.5 MB, free: 11.53 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001778/0.01595, allocations: 2.928 MB / 356.4 MB, free: 8.594 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007207/0.01668, allocations: 0.9353 MB / 357.3 MB, free: 7.625 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001162/0.01784, allocations: 1.59 MB / 358.9 MB, free: 6.031 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001461/0.0193, allocations: 1.457 MB / 360.4 MB, free: 4.57 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004102/0.01971, allocations: 268 kB / 360.7 MB, free: 4.309 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001026/0.02073, allocations: 0.8542 MB / 361.5 MB, free: 3.453 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000773/0.02151, allocations: 1.425 MB / 362.9 MB, free: 2.023 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007346/0.02224, allocations: 0.946 MB / 363.9 MB, free: 1.074 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002882/0.02512, allocations: 3.63 MB / 367.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.02513, allocations: 4 kB / 367.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.02513, allocations: 0 / 367.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.49e-05/0.02515, allocations: 4 kB / 367.5 MB, free: 13.42 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.006919/0.03207, allocations: 5.539 MB / 373.1 MB, free: 7.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.03211, allocations: 8.625 kB / 373.1 MB, free: 7.812 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003915/0.03602, allocations: 2.292 MB / 375.4 MB, free: 5.516 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001475/0.0375, allocations: 1.378 MB / 376.7 MB, free: 4.105 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.96e-05/0.03759, allocations: 168.8 kB / 376.9 MB, free: 3.938 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002868/0.03787, allocations: 239.9 kB / 377.1 MB, free: 3.703 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005471/0.04334, allocations: 4.772 MB / 381.9 MB, free: 14.31 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.223e-05/0.0434, allocations: 31.75 kB / 381.9 MB, free: 14.28 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002135/0.04361, allocations: 107.9 kB / 382 MB, free: 14.17 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0018/0.04541, allocations: 2.017 MB / 384.1 MB, free: 12.15 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005187/0.0506, allocations: 2.759 MB / 386.8 MB, free: 9.387 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1585/0.2091, allocations: 29.99 MB / 416.8 MB, free: 48.43 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004784/0.2139, allocations: 1.421 MB / 418.2 MB, free: 48.38 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007798/0.2146, allocations: 408.3 kB / 418.6 MB, free: 48.36 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005857/0.2205, allocations: 3.393 MB / 422 MB, free: 47.97 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.2205, allocations: 47.11 kB / 422.1 MB, free: 47.93 MB / 330.7 MB Notification: Performance of pre-optimization done (n=155): time 4.919e-06/0.2205, allocations: 3.188 kB / 422.1 MB, free: 47.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=193): time 0.01026/0.2308, allocations: 4.574 MB / 426.6 MB, free: 47.16 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.27e-05/0.2308, allocations: 73.66 kB / 426.7 MB, free: 47.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002492/0.2333, allocations: 2.266 MB / 429 MB, free: 46.66 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.604e-05/0.2334, allocations: 52.36 kB / 429 MB, free: 46.62 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001042/0.2344, allocations: 2.598 MB / 431.6 MB, free: 45.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004499/0.2349, allocations: 0.7556 MB / 432.4 MB, free: 44.62 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001026/0.2359, allocations: 1.006 MB / 433.4 MB, free: 44.5 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.679e-05/0.236, allocations: 0.522 MB / 433.9 MB, free: 44.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.237, allocations: 0.5062 MB / 434.4 MB, free: 44.01 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002291/0.2393, allocations: 4.3 MB / 438.7 MB, free: 39.04 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006719/0.246, allocations: 5.323 MB / 444 MB, free: 33.24 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.197e-05/0.2461, allocations: 28 kB / 444.1 MB, free: 33.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=623) (initialization): time 0.01239/0.2585, allocations: 4.104 MB / 448.2 MB, free: 29.52 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.29e-05/0.2585, allocations: 44 kB / 448.2 MB, free: 29.47 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.355e-05/0.2586, allocations: 88 kB / 448.3 MB, free: 29.39 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004394/0.263, allocations: 0.5414 MB / 448.8 MB, free: 28.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002281/0.2653, allocations: 1.013 MB / 449.9 MB, free: 28.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004925/0.2702, allocations: 8.331 MB / 458.2 MB, free: 19.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00182/0.272, allocations: 242.9 kB / 458.4 MB, free: 19.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002451/0.2723, allocations: 276 kB / 458.7 MB, free: 19.05 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.0009531/0.2732, allocations: 0.5228 MB / 459.2 MB, free: 18.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002575/0.2735, allocations: 290.3 kB / 459.5 MB, free: 18.23 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/0.2752, allocations: 1.415 MB / 460.9 MB, free: 16.8 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.607e-05/0.2753, allocations: 27.98 kB / 460.9 MB, free: 16.77 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.2753, allocations: 4 kB / 460.9 MB, free: 16.77 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.679e-06/0.2753, allocations: 7.969 kB / 461 MB, free: 16.76 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005871/0.2811, allocations: 4.753 MB / 465.7 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.2812, allocations: 4.062 kB / 465.7 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004714/0.2816, allocations: 239.7 kB / 465.9 MB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007863/0.2824, allocations: 427.2 kB / 466.4 MB, free: 11.24 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.375e-05/0.2825, allocations: 39.12 kB / 466.4 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003392/0.2859, allocations: 7.055 MB / 473.5 MB, free: 3.812 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.2859, allocations: 7.938 kB / 473.5 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002315/0.2882, allocations: 2.03 MB / 475.5 MB, free: 1.664 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003334/0.2885, allocations: 218.4 kB / 475.7 MB, free: 1.449 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000165/0.2887, allocations: 39.98 kB / 475.7 MB, free: 1.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004711/0.2892, allocations: 83.94 kB / 475.8 MB, free: 1.328 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000191/0.2894, allocations: 129 kB / 475.9 MB, free: 1.199 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.938e-05/0.2894, allocations: 62.64 kB / 476 MB, free: 1.141 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001046/0.2905, allocations: 0.993 MB / 477 MB, free: 132 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2905, allocations: 0 / 477 MB, free: 132 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.002845/0.2933, allocations: 0.8164 MB / 477.8 MB, free: 15.31 MB / 346.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.0003119/0.2936, allocations: 170.5 kB / 478 MB, free: 15.14 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003971/0.2976, allocations: 2.899 MB / 480.9 MB, free: 12.2 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.2976, allocations: 0.8125 kB / 480.9 MB, free: 12.2 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.2988, allocations: 1.254 MB / 482.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009475/0.2998, allocations: 324.9 kB / 482.5 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008638/0.3084, allocations: 6.135 MB / 488.6 MB, free: 4.34 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009483/0.3094, allocations: 1.022 MB / 489.6 MB, free: 3.297 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001784/0.3112, allocations: 1.109 MB / 490.7 MB, free: 2.188 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003033/0.3115, allocations: 172.5 kB / 490.9 MB, free: 2.02 MB / 346.7 MB Notification: Performance of SimCode: time 1.573e-06/0.3115, allocations: 0 / 490.9 MB, free: 2.02 MB / 346.7 MB Notification: Performance of Templates: time 0.03698/0.3484, allocations: 23.52 MB / 0.5024 GB, free: 10.89 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.8334728330373764]