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.0008694/0.0008694, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.003861/0.004731, allocations: 435.8 kB / 10.33 MB, free: 368 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.001041/0.001041, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001354/0.002395, allocations: 463.6 kB / 11.68 MB, free: 2.484 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.9868/0.9868, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09476/1.082, allocations: 53.66 MB / 243.2 MB, free: 15.58 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.08766/0.08766, allocations: 7.18 MB / 251.1 MB, free: 7.867 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01309/0.1007, allocations: 2.553 MB / 253.7 MB, free: 5.309 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.292e-06/1.292e-06, allocations: 0 / 255 MB, free: 4.051 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.861e-05/1.99e-05, allocations: 6.25 kB / 255 MB, free: 4.043 MB / 250.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.0075/0.00752, allocations: 9.392 MB / 264.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006031/0.01355, allocations: 2.958 MB / 267.3 MB, free: 7.637 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001653/0.0152, allocations: 43.88 kB / 267.3 MB, free: 7.594 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009102/0.01611, allocations: 472.8 kB / 267.8 MB, free: 7.129 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003461/0.01957, allocations: 1.617 MB / 269.4 MB, free: 5.504 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004307/0.02001, allocations: 183.5 kB / 269.6 MB, free: 5.324 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003071/0.02308, allocations: 2.941 MB / 272.5 MB, free: 2.379 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001359/0.02444, allocations: 0.9489 MB / 273.5 MB, free: 1.398 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1199/0.1443, allocations: 1.659 MB / 275.2 MB, free: 3.156 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002433/0.1467, allocations: 1.391 MB / 276.5 MB, free: 3.156 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008804/0.1476, allocations: 261.6 kB / 276.8 MB, free: 3.156 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001688/0.1493, allocations: 0.8711 MB / 277.7 MB, free: 3.156 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001128/0.1504, allocations: 1.26 MB / 278.9 MB, free: 3.156 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001382/0.1518, allocations: 0.7836 MB / 279.7 MB, free: 3.156 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004408/0.1562, allocations: 3.395 MB / 283.1 MB, free: 2.637 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.475e-05/0.1562, allocations: 1.125 kB / 283.1 MB, free: 2.637 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1562, allocations: 0 / 283.1 MB, free: 2.637 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001958/0.1564, allocations: 0 / 283.1 MB, free: 2.637 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.009147/0.1656, allocations: 4.916 MB / 288 MB, free: 1.012 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.1656, allocations: 10.67 kB / 288 MB, free: 1.012 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002889/0.1685, allocations: 1.073 MB / 289.1 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001814/0.1703, allocations: 1.107 MB / 290.2 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-05/0.1704, allocations: 176.8 kB / 290.4 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002752/0.1707, allocations: 234.8 kB / 290.6 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004845/0.1755, allocations: 4.021 MB / 294.6 MB, free: 15.29 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.904e-05/0.1756, allocations: 31.67 kB / 294.7 MB, free: 15.28 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002081/0.1758, allocations: 115.1 kB / 294.8 MB, free: 15.28 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001598/0.1774, allocations: 1.828 MB / 296.6 MB, free: 14.54 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00476/0.1822, allocations: 2.257 MB / 298.9 MB, free: 12.45 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02031/0.2025, allocations: 21.48 MB / 320.3 MB, free: 7.328 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003327/0.2058, allocations: 1.337 MB / 321.7 MB, free: 6.039 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003897/0.2062, allocations: 306 kB / 322 MB, free: 5.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004587/0.2108, allocations: 2.968 MB / 325 MB, free: 2.844 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.2108, allocations: 45.72 kB / 325 MB, free: 2.793 MB / 298.7 MB Notification: Performance of pre-optimization done (n=155): time 5.45e-06/0.2108, allocations: 0 / 325 MB, free: 2.793 MB / 298.7 MB Notification: Performance of matching and sorting (n=193): time 0.007618/0.2184, allocations: 3.543 MB / 328.5 MB, free: 15.35 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/0.2185, allocations: 73.41 kB / 328.6 MB, free: 15.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002119/0.2206, allocations: 2.043 MB / 330.7 MB, free: 13.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.432e-05/0.2207, allocations: 49.7 kB / 330.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00112/0.2218, allocations: 2.425 MB / 333.1 MB, free: 11.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004389/0.2222, allocations: 0.7259 MB / 333.9 MB, free: 10.49 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007777/0.223, allocations: 0.9068 MB / 334.8 MB, free: 9.676 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.2231, allocations: 360.3 kB / 335.1 MB, free: 9.344 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006816/0.2238, allocations: 492.3 kB / 335.6 MB, free: 8.855 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002041/0.2258, allocations: 2.989 MB / 338.6 MB, free: 4.742 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004114/0.23, allocations: 4.127 MB / 342.7 MB, free: 15.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.803e-05/0.23, allocations: 24 kB / 342.7 MB, free: 15.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.005051/0.2351, allocations: 3.283 MB / 346 MB, free: 12.18 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.664e-05/0.2351, allocations: 47.94 kB / 346.1 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/0.2352, allocations: 95.94 kB / 346.2 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001229/0.2364, allocations: 484 kB / 346.6 MB, free: 11.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002593/0.239, allocations: 1.115 MB / 347.7 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006158/0.2452, allocations: 6.204 MB / 353.9 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00256/0.2478, allocations: 184 kB / 354.1 MB, free: 3.852 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003451/0.2481, allocations: 243 kB / 354.4 MB, free: 3.617 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.001533/0.2496, allocations: 490.7 kB / 354.8 MB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003646/0.25, allocations: 183 kB / 355 MB, free: 2.949 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00209/0.2521, allocations: 1.089 MB / 356.1 MB, free: 1.84 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-05/0.2522, allocations: 23.94 kB / 356.1 MB, free: 1.816 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.2522, allocations: 4 kB / 356.1 MB, free: 1.812 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.621e-05/0.2522, allocations: 8.578 kB / 356.1 MB, free: 1.805 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00669/0.2589, allocations: 3.838 MB / 360 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/0.2589, allocations: 7.984 kB / 360 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007218/0.2596, allocations: 255.6 kB / 360.2 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004762/0.2601, allocations: 198.4 kB / 360.4 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001096/0.2612, allocations: 431.6 kB / 360.9 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.654e-05/0.2613, allocations: 43.97 kB / 360.9 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004449/0.2657, allocations: 5.075 MB / 366 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.2657, allocations: 11.94 kB / 366 MB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002312/0.268, allocations: 1.561 MB / 367.6 MB, free: 6.32 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003557/0.2684, allocations: 32 kB / 367.6 MB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005528/0.2689, allocations: 35.98 kB / 367.6 MB, free: 6.254 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002212/0.2692, allocations: 129 kB / 367.7 MB, free: 6.129 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.929e-05/0.2693, allocations: 51.97 kB / 367.8 MB, free: 6.078 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001043/0.2703, allocations: 0.7312 MB / 368.5 MB, free: 5.324 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2703, allocations: 0 / 368.5 MB, free: 5.324 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003367/0.2737, allocations: 0.8202 MB / 369.3 MB, free: 4.504 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.0003576/0.274, allocations: 152 kB / 369.5 MB, free: 4.348 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003889/0.2779, allocations: 2.437 MB / 371.9 MB, free: 1.883 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001635/0.2781, allocations: 70.55 kB / 372 MB, free: 1.809 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.2792, allocations: 0.9622 MB / 373 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001343/0.2806, allocations: 498.6 kB / 373.4 MB, free: 336 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/0.2946, allocations: 6.315 MB / 379.8 MB, free: 9.898 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001108/0.2957, allocations: 1.018 MB / 380.8 MB, free: 8.863 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001065/0.2967, allocations: 343.5 kB / 381.1 MB, free: 8.523 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005323/0.2973, allocations: 409.2 kB / 381.5 MB, free: 8.121 MB / 362.7 MB Notification: Performance of SimCode: time 1.884e-06/0.2973, allocations: 0 / 381.5 MB, free: 8.121 MB / 362.7 MB Notification: Performance of Templates: time 0.04163/0.3389, allocations: 26.45 MB / 408 MB, free: 14.05 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.622369290329516]