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.001822/0.001822, allocations: 89.48 kB / 19.44 MB, free: 336 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.001947/0.001947, allocations: 169.2 kB / 22.76 MB, free: 1.664 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.569/1.569, allocations: 177.1 MB / 203.1 MB, free: 5.527 MB / 186.7 MB " [Timeout remaining time 178] 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.05361/0.05361, allocations: 7.177 MB / 266.7 MB, free: 6.121 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.412e-06/1.412e-06, allocations: 0 / 338.1 MB, free: 10.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.846e-05/2.988e-05, allocations: 2.312 kB / 338.1 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.007592/0.007622, allocations: 9.418 MB / 347.5 MB, free: 1.125 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005697/0.01332, allocations: 2.836 MB / 350.4 MB, free: 14.28 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009127/0.01423, allocations: 47.81 kB / 350.4 MB, free: 14.23 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009892/0.01522, allocations: 436.9 kB / 350.9 MB, free: 13.8 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003978/0.0192, allocations: 1.652 MB / 352.5 MB, free: 12.14 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004821/0.01968, allocations: 183.5 kB / 352.7 MB, free: 11.96 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004081/0.02376, allocations: 2.93 MB / 355.6 MB, free: 9.023 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001367/0.02513, allocations: 0.9275 MB / 356.5 MB, free: 8.062 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002158/0.02729, allocations: 1.586 MB / 358.1 MB, free: 6.473 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002271/0.02956, allocations: 1.465 MB / 359.6 MB, free: 5.004 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004787/0.03004, allocations: 260 kB / 359.8 MB, free: 4.75 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001612/0.03165, allocations: 0.8503 MB / 360.7 MB, free: 3.898 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00152/0.03317, allocations: 1.425 MB / 362.1 MB, free: 2.469 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001612/0.03478, allocations: 0.9421 MB / 363.1 MB, free: 1.523 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007315/0.0421, allocations: 5.474 MB / 368.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.0421, allocations: 0 / 368.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.0421, allocations: 0 / 368.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.949e-05/0.0422, allocations: 0 / 368.5 MB, free: 12.03 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.01551/0.05771, allocations: 6.004 MB / 374.5 MB, free: 5.965 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.05775, allocations: 8.625 kB / 374.6 MB, free: 5.957 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008203/0.06595, allocations: 2.284 MB / 376.8 MB, free: 3.668 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00398/0.06993, allocations: 1.39 MB / 378.2 MB, free: 2.246 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001847/0.07012, allocations: 172.8 kB / 378.4 MB, free: 2.074 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005676/0.07069, allocations: 239.9 kB / 378.6 MB, free: 1.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01249/0.08318, allocations: 5.369 MB / 384 MB, free: 11.85 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.339e-05/0.08327, allocations: 27.77 kB / 384 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003419/0.08361, allocations: 111.8 kB / 384.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00375/0.08736, allocations: 2.013 MB / 386.1 MB, free: 9.699 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01196/0.09932, allocations: 3.398 MB / 389.5 MB, free: 6.293 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1909/0.2903, allocations: 42.22 MB / 431.8 MB, free: 48.29 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006402/0.2967, allocations: 1.599 MB / 433.4 MB, free: 48.23 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.2977, allocations: 0.5004 MB / 433.9 MB, free: 48.21 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01003/0.3077, allocations: 3.58 MB / 437.4 MB, free: 47.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.3078, allocations: 48.92 kB / 437.5 MB, free: 47.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=155): time 5.961e-06/0.3078, allocations: 0 / 437.5 MB, free: 47.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=193): time 0.02204/0.3298, allocations: 4.858 MB / 442.3 MB, free: 46.58 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.3299, allocations: 73.06 kB / 442.4 MB, free: 46.52 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007217/0.3371, allocations: 3.105 MB / 445.5 MB, free: 45.17 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002284/0.3373, allocations: 52.3 kB / 445.6 MB, free: 45.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00204/0.3393, allocations: 2.764 MB / 448.3 MB, free: 43.06 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001022/0.3404, allocations: 0.8036 MB / 449.1 MB, free: 42.47 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002769/0.3431, allocations: 1.208 MB / 450.4 MB, free: 41.83 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002099/0.3433, allocations: 0.5516 MB / 450.9 MB, free: 41.31 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002916/0.3463, allocations: 0.6443 MB / 451.5 MB, free: 41.08 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004793/0.3511, allocations: 4.622 MB / 456.2 MB, free: 34.75 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008037/0.3591, allocations: 5.758 MB / 461.9 MB, free: 27.31 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001166/0.3592, allocations: 24 kB / 462 MB, free: 27.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=623) (initialization): time 0.01443/0.3736, allocations: 4.395 MB / 466.3 MB, free: 22.89 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001277/0.3738, allocations: 47.98 kB / 466.4 MB, free: 22.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001511/0.3739, allocations: 92 kB / 466.5 MB, free: 22.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003397/0.3773, allocations: 0.5689 MB / 467.1 MB, free: 22.17 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005857/0.3832, allocations: 1.018 MB / 468.1 MB, free: 21.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01354/0.3967, allocations: 8.843 MB / 476.9 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005906/0.4026, allocations: 235.9 kB / 477.1 MB, free: 11.72 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009461/0.4036, allocations: 282.5 kB / 477.4 MB, free: 11.45 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.002879/0.4064, allocations: 0.651 MB / 478.1 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008478/0.4073, allocations: 290.4 kB / 478.4 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005719/0.413, allocations: 1.551 MB / 479.9 MB, free: 8.93 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001636/0.4132, allocations: 31.97 kB / 479.9 MB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/0.4132, allocations: 8 kB / 479.9 MB, free: 8.891 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.439e-05/0.4132, allocations: 11.91 kB / 480 MB, free: 8.879 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01817/0.4314, allocations: 5.956 MB / 485.9 MB, free: 2.816 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.399e-05/0.4314, allocations: 4 kB / 485.9 MB, free: 2.812 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000876/0.4323, allocations: 240.2 kB / 486.1 MB, free: 2.578 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001407/0.4337, allocations: 428.5 kB / 486.6 MB, free: 2.148 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001271/0.4338, allocations: 43.61 kB / 486.6 MB, free: 2.109 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008716/0.4425, allocations: 7.376 MB / 494 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.308e-06/0.4425, allocations: 7.938 kB / 494 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005505/0.448, allocations: 2.308 MB / 496.3 MB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007924/0.4488, allocations: 210.4 kB / 496.5 MB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005077/0.4493, allocations: 36 kB / 496.5 MB, free: 7.719 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/0.4505, allocations: 83.89 kB / 496.6 MB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003192/0.4508, allocations: 133 kB / 496.8 MB, free: 7.504 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001346/0.4509, allocations: 63.36 kB / 496.8 MB, free: 7.445 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002843/0.4537, allocations: 1.266 MB / 498.1 MB, free: 6.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4537, allocations: 0 / 498.1 MB, free: 6.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004415/0.4582, allocations: 0.8163 MB / 498.9 MB, free: 5.344 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.0005121/0.4587, allocations: 177.8 kB / 499.1 MB, free: 5.168 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007279/0.466, allocations: 3.3 MB / 0.4906 GB, free: 1.832 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.466, allocations: 0 / 0.4906 GB, free: 1.832 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002529/0.4685, allocations: 1.381 MB / 0.4919 GB, free: 404 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002169/0.4707, allocations: 332.7 kB / 0.4923 GB, free: 88 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01361/0.4843, allocations: 6.278 MB / 0.4984 GB, free: 9.688 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003861/0.4881, allocations: 2.055 MB / 0.5004 GB, free: 7.598 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002968/0.4911, allocations: 1.107 MB / 0.5015 GB, free: 6.484 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004657/0.4916, allocations: 176.5 kB / 0.5017 GB, free: 6.312 MB / 362.7 MB Notification: Performance of SimCode: time 1.873e-06/0.4916, allocations: 0 / 0.5017 GB, free: 6.312 MB / 362.7 MB Notification: Performance of Templates: time 0.05741/0.549, allocations: 23.51 MB / 0.5246 GB, free: 15.18 MB / 394.7 MB " [Timeout remaining time 659] 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: 6.25639463798143]