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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") translateModel(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006134/0.006134, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.2 MB / 239 MB, free: 56 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 105.9 kB / 290.2 MB, free: 4.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04097/0.04097, allocations: 8.938 MB / 350.3 MB, free: 4.168 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00033/0.0003301, allocations: 12 kB / 413.1 MB, free: 5.25 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2548, allocations: 52.37 MB / 465.5 MB, free: 69.27 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09743/0.3523, allocations: 87.54 MB / 0.5401 GB, free: 13.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/0.3526, allocations: 79.97 kB / 0.5402 GB, free: 13.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.337/0.6896, allocations: 70.14 MB / 0.6087 GB, free: 46.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.6896, allocations: 0 / 0.6087 GB, free: 46.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.927e-05/0.6897, allocations: 60 kB / 0.6087 GB, free: 46.7 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01199/0.7017, allocations: 3.814 MB / 0.6124 GB, free: 42.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.7018, allocations: 8.031 kB / 0.6125 GB, free: 42.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008778/0.7106, allocations: 1.98 MB / 0.6144 GB, free: 40.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005173/0.7158, allocations: 1.864 MB / 0.6162 GB, free: 38.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002005/0.716, allocations: 254.4 kB / 0.6164 GB, free: 38.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001659/0.7177, allocations: 327.8 kB / 0.6168 GB, free: 38.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01618/0.7339, allocations: 8.546 MB / 0.6251 GB, free: 29.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001104/0.734, allocations: 31.8 kB / 0.6251 GB, free: 29.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005145/0.7346, allocations: 147.9 kB / 0.6253 GB, free: 29.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001137/0.7357, allocations: 1.002 MB / 0.6263 GB, free: 28.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01331/0.749, allocations: 7.873 MB / 0.6339 GB, free: 20.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03569/0.7847, allocations: 28.49 MB / 0.6618 GB, free: 7.172 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006823/0.7916, allocations: 2.816 MB / 0.6645 GB, free: 4.246 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009848/0.8015, allocations: 6.478 MB / 0.6708 GB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.8016, allocations: 43.88 kB / 0.6709 GB, free: 13.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=155): time 3.547e-06/0.8016, allocations: 0 / 0.6709 GB, free: 13.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=193): time 0.01666/0.8182, allocations: 7.011 MB / 0.6777 GB, free: 5.961 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.436e-05/0.8183, allocations: 69.41 kB / 0.6778 GB, free: 5.883 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004192/0.8225, allocations: 2.662 MB / 0.6804 GB, free: 3.211 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001646/0.8227, allocations: 57.69 kB / 0.6805 GB, free: 3.148 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001523/0.8242, allocations: 2.357 MB / 0.6828 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006155/0.8249, allocations: 0.7015 MB / 0.6834 GB, free: 48 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002198/0.8251, allocations: 92.08 kB / 0.6835 GB, free: 15.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002927/0.8254, allocations: 0.4965 MB / 0.684 GB, free: 15.45 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002236/0.8276, allocations: 1.465 MB / 0.6854 GB, free: 13.98 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003859/0.8315, allocations: 4.023 MB / 0.6894 GB, free: 8.672 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003353/0.8349, allocations: 2.426 MB / 0.6917 GB, free: 6.246 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.508e-05/0.8349, allocations: 28 kB / 0.6918 GB, free: 6.219 MB / 426.7 MB Notification: Performance of matching and sorting (n=613) (initialization): time 0.009414/0.8444, allocations: 5.872 MB / 0.6975 GB, free: 344 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.981e-05/0.8444, allocations: 49.78 kB / 0.6976 GB, free: 296 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.169e-05/0.8445, allocations: 88 kB / 0.6976 GB, free: 208 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001389/0.8459, allocations: 0.5686 MB / 0.6982 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002988/0.8489, allocations: 0.9943 MB / 0.6992 GB, free: 14.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/0.8591, allocations: 8.547 MB / 0.7075 GB, free: 5.652 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003573/0.8627, allocations: 231.9 kB / 0.7077 GB, free: 5.426 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005587/0.8633, allocations: 276.3 kB / 0.708 GB, free: 5.156 MB / 442.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 (546): * Single equations (assignments): 539 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 21,(1,100.0%) 9} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.002996/0.8663, allocations: 1.724 MB / 0.7097 GB, free: 3.418 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004487/0.8667, allocations: 264.5 kB / 0.7099 GB, free: 3.156 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004543/0.8713, allocations: 2.629 MB / 0.7125 GB, free: 0.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001113/0.8714, allocations: 35.92 kB / 0.7125 GB, free: 476 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.8714, allocations: 11.95 kB / 0.7125 GB, free: 464 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/0.8715, allocations: 7.969 kB / 0.7126 GB, free: 456 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01277/0.8842, allocations: 7.28 MB / 0.7197 GB, free: 9.016 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.8843, allocations: 4 kB / 0.7197 GB, free: 9.012 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009029/0.8852, allocations: 232.2 kB / 0.7199 GB, free: 8.785 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001045/0.8862, allocations: 425.1 kB / 0.7203 GB, free: 8.363 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.8864, allocations: 47.94 kB / 0.7203 GB, free: 8.316 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007808/0.8942, allocations: 7.384 MB / 0.7275 GB, free: 0.5273 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.8942, allocations: 4 kB / 0.7276 GB, free: 0.5234 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2557/1.15, allocations: 4.297 MB / 0.7317 GB, free: 120.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001509/1.151, allocations: 353 kB / 0.7321 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006622/1.152, allocations: 40.2 kB / 0.7321 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00133/1.154, allocations: 82.19 kB / 0.7322 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002591/1.154, allocations: 131.9 kB / 0.7323 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/1.154, allocations: 50.61 kB / 0.7324 GB, free: 120.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002872/1.157, allocations: 1.878 MB / 0.7342 GB, free: 120.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.157, allocations: 0 / 0.7342 GB, free: 120.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003796/1.161, allocations: 0.8369 MB / 0.735 GB, free: 120.4 MB / 458.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 (134): * Single equations (assignments): 127 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 17,(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004238/1.161, allocations: 179.6 kB / 0.7352 GB, free: 120.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006095/1.167, allocations: 4.016 MB / 0.7391 GB, free: 119.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/1.167, allocations: 1.375 kB / 0.7391 GB, free: 119.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002253/1.169, allocations: 1.521 MB / 0.7406 GB, free: 119.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002181/1.172, allocations: 398.5 kB / 0.741 GB, free: 119.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01362/1.185, allocations: 8.609 MB / 0.7494 GB, free: 116 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002784/1.188, allocations: 2.885 MB / 0.7522 GB, free: 115.2 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003278/1.191, allocations: 1.325 MB / 0.7535 GB, free: 115.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004658/1.192, allocations: 194.5 kB / 0.7537 GB, free: 115.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.543e-06/1.192, allocations: 7.812 kB / 0.7537 GB, free: 115.2 MB / 458.7 MB Notification: Performance of Templates: time 0.04859/1.24, allocations: 29.75 MB / 0.7827 GB, free: 107.4 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.makefile (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=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1)