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.0008518/0.0008518, allocations: 77.06 kB / 9.98 MB, free: 0.7031 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001193/0.002045, allocations: 444 kB / 10.41 MB, free: 276 kB / 10.45 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.0008946/0.0008946, allocations: 157.1 kB / 11.33 MB, free: 2.84 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001187/0.002082, allocations: 475.6 kB / 11.79 MB, free: 2.371 MB / 13.93 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.9811/0.9811, allocations: 177.2 MB / 189.7 MB, free: 5.227 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08895/1.07, allocations: 53.66 MB / 243.4 MB, free: 15.49 MB / 250.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.03496/0.03496, allocations: 7.171 MB / 251.3 MB, free: 7.762 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.005756/0.04072, allocations: 2.565 MB / 253.9 MB, free: 5.191 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.202e-06/1.202e-06, allocations: 0 / 255.2 MB, free: 3.91 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.588e-05/1.708e-05, allocations: 2.312 kB / 255.2 MB, free: 3.906 MB / 250.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.007061/0.007079, allocations: 9.414 MB / 264.6 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004788/0.01187, allocations: 2.954 MB / 267.5 MB, free: 7.484 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007856/0.01265, allocations: 47.81 kB / 267.6 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006759/0.01333, allocations: 460.9 kB / 268 MB, free: 6.984 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002504/0.01583, allocations: 1.629 MB / 269.7 MB, free: 5.348 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003629/0.01619, allocations: 175.6 kB / 269.8 MB, free: 5.176 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002514/0.01871, allocations: 2.946 MB / 272.8 MB, free: 2.223 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001391/0.0201, allocations: 0.945 MB / 273.7 MB, free: 1.242 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.12/0.1401, allocations: 1.661 MB / 275.4 MB, free: 3.203 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002661/0.1428, allocations: 1.391 MB / 276.8 MB, free: 3.203 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008889/0.1437, allocations: 260.7 kB / 277 MB, free: 3.203 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001737/0.1454, allocations: 0.8677 MB / 277.9 MB, free: 3.203 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001008/0.1464, allocations: 1.265 MB / 279.2 MB, free: 3.203 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001145/0.1476, allocations: 0.7854 MB / 279.9 MB, free: 3.203 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003573/0.1512, allocations: 3.385 MB / 283.3 MB, free: 2.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.045e-05/0.1512, allocations: 0 / 283.3 MB, free: 2.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1512, allocations: 1.375 kB / 283.3 MB, free: 2.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001546/0.1513, allocations: 0 / 283.3 MB, free: 2.68 MB / 266.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.007945/0.1593, allocations: 4.921 MB / 288.2 MB, free: 1.055 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.1593, allocations: 12.11 kB / 288.3 MB, free: 1.055 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002845/0.1621, allocations: 1.066 MB / 289.3 MB, free: 1.031 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00156/0.1637, allocations: 1.107 MB / 290.4 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.857e-05/0.1638, allocations: 174.4 kB / 290.6 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002891/0.1641, allocations: 241 kB / 290.8 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004572/0.1686, allocations: 4.012 MB / 294.8 MB, free: 15.34 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-05/0.1687, allocations: 42.33 kB / 294.9 MB, free: 15.33 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002249/0.1689, allocations: 106.2 kB / 295 MB, free: 15.33 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001569/0.1705, allocations: 1.723 MB / 296.7 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004935/0.1755, allocations: 2.265 MB / 299 MB, free: 12.4 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01816/0.1936, allocations: 21.47 MB / 320.5 MB, free: 7.289 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003176/0.1968, allocations: 1.332 MB / 321.8 MB, free: 6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000367/0.1972, allocations: 304.2 kB / 322.1 MB, free: 5.711 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004164/0.2013, allocations: 2.967 MB / 325.1 MB, free: 2.812 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.483e-05/0.2014, allocations: 55.36 kB / 325.1 MB, free: 2.754 MB / 298.7 MB Notification: Performance of pre-optimization done (n=155): time 4.118e-06/0.2014, allocations: 1.531 kB / 325.1 MB, free: 2.754 MB / 298.7 MB Notification: Performance of matching and sorting (n=193): time 0.007466/0.2088, allocations: 3.811 MB / 328.9 MB, free: 15.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.2089, allocations: 69.41 kB / 329 MB, free: 14.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001629/0.2105, allocations: 2.046 MB / 331 MB, free: 13.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.777e-05/0.2106, allocations: 67.11 kB / 331.1 MB, free: 13.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009208/0.2115, allocations: 2.413 MB / 333.5 MB, free: 10.86 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003802/0.2119, allocations: 0.7323 MB / 334.2 MB, free: 10.17 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009684/0.2128, allocations: 0.9041 MB / 335.1 MB, free: 9.359 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.25e-05/0.2129, allocations: 349.8 kB / 335.5 MB, free: 9.035 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006046/0.2135, allocations: 492.3 kB / 336 MB, free: 8.547 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001574/0.2151, allocations: 2.992 MB / 339 MB, free: 4.434 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003535/0.2186, allocations: 4.434 MB / 343.4 MB, free: 14.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.819e-05/0.2187, allocations: 28.61 kB / 343.4 MB, free: 14.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.003506/0.2222, allocations: 3.28 MB / 346.7 MB, free: 11.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.271e-05/0.2222, allocations: 45.56 kB / 346.7 MB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.534e-05/0.2223, allocations: 100.6 kB / 346.8 MB, free: 11.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/0.2235, allocations: 494.1 kB / 347.3 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001751/0.2252, allocations: 1.111 MB / 348.4 MB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004643/0.2299, allocations: 6.205 MB / 354.6 MB, free: 3.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001507/0.2314, allocations: 183.9 kB / 354.8 MB, free: 3.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002218/0.2316, allocations: 248 kB / 355.1 MB, free: 2.988 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 414 * 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 (560): * Single equations (assignments): 553 * 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.001095/0.2327, allocations: 485.4 kB / 355.5 MB, free: 2.508 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002003/0.2329, allocations: 175.8 kB / 355.7 MB, free: 2.336 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001338/0.2342, allocations: 1.083 MB / 356.8 MB, free: 1.234 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.696e-05/0.2343, allocations: 31.92 kB / 356.8 MB, free: 1.203 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.2343, allocations: 4 kB / 356.8 MB, free: 1.199 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.2343, allocations: 7.969 kB / 356.8 MB, free: 1.191 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00658/0.2409, allocations: 3.841 MB / 360.7 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.378e-05/0.2409, allocations: 8 kB / 360.7 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008554/0.2417, allocations: 251.6 kB / 360.9 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004951/0.2422, allocations: 206.4 kB / 361.1 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00128/0.2435, allocations: 436.2 kB / 361.6 MB, free: 12.78 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001083/0.2436, allocations: 32 kB / 361.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00541/0.249, allocations: 5.083 MB / 366.7 MB, free: 7.375 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.888e-06/0.249, allocations: 7.938 kB / 366.7 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002904/0.2519, allocations: 1.567 MB / 368.2 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004002/0.2523, allocations: 35.98 kB / 368.3 MB, free: 5.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007054/0.2531, allocations: 35.98 kB / 368.3 MB, free: 5.625 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002562/0.2533, allocations: 132.9 kB / 368.4 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000111/0.2534, allocations: 40 kB / 368.5 MB, free: 5.457 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001598/0.255, allocations: 0.739 MB / 369.2 MB, free: 4.695 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.255, allocations: 3.938 kB / 369.2 MB, free: 4.691 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004297/0.2593, allocations: 0.8163 MB / 370 MB, free: 3.875 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.0003774/0.2597, allocations: 156 kB / 370.2 MB, free: 3.715 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004101/0.2638, allocations: 2.516 MB / 372.7 MB, free: 1.184 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001721/0.264, allocations: 74.48 kB / 372.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001524/0.2655, allocations: 1.057 MB / 373.8 MB, free: 8 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002575/0.2681, allocations: 2.14 MB / 376 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01622/0.2843, allocations: 6.315 MB / 382.3 MB, free: 7.121 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001469/0.2858, allocations: 1.006 MB / 383.3 MB, free: 6.094 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001153/0.2869, allocations: 339.5 kB / 383.6 MB, free: 5.758 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006261/0.2875, allocations: 405.2 kB / 384 MB, free: 5.359 MB / 362.7 MB Notification: Performance of SimCode: time 1.132e-06/0.2875, allocations: 0 / 384 MB, free: 5.359 MB / 362.7 MB Notification: Performance of Templates: time 0.05636/0.3439, allocations: 26.15 MB / 410.2 MB, free: 11.43 MB / 394.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.2225823970511556]