Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.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_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009585/0.0009586, allocations: 174.7 kB / 12.73 MB, free: 2.59 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.212/1.212, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000803/0.000803, allocations: 93.22 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03839/0.03839, allocations: 8.841 MB / 345.3 MB, free: 1.301 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.938e-05/1.94e-05, allocations: 0 / 405.6 MB, free: 61.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06897/0.06901, allocations: 52.4 MB / 458 MB, free: 9.051 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2787/0.3478, allocations: 87.5 MB / 0.5327 GB, free: 14.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000181/0.348, allocations: 75.59 kB / 0.5327 GB, free: 14.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1599/0.5079, allocations: 70.21 MB / 0.6013 GB, free: 14.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.508, allocations: 0 / 0.6013 GB, free: 14.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.898e-05/0.5081, allocations: 60 kB / 0.6014 GB, free: 14.08 MB / 426.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.01087/0.5189, allocations: 3.705 MB / 0.605 GB, free: 10.31 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.519, allocations: 8.031 kB / 0.605 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008064/0.5271, allocations: 1.988 MB / 0.6069 GB, free: 8.309 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003259/0.5303, allocations: 1.864 MB / 0.6088 GB, free: 6.395 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001614/0.5305, allocations: 250.4 kB / 0.609 GB, free: 6.148 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006116/0.5311, allocations: 327.8 kB / 0.6093 GB, free: 5.828 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01237/0.5435, allocations: 8.465 MB / 0.6176 GB, free: 12.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.852e-05/0.5436, allocations: 27.8 kB / 0.6176 GB, free: 12.89 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004382/0.5441, allocations: 147.9 kB / 0.6177 GB, free: 12.74 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001225/0.5453, allocations: 0.9942 MB / 0.6187 GB, free: 11.75 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01217/0.5575, allocations: 7.753 MB / 0.6263 GB, free: 3.984 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2284/0.7859, allocations: 28.5 MB / 0.6541 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006025/0.7919, allocations: 2.783 MB / 0.6568 GB, free: 100.3 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/0.7932, allocations: 0.9476 MB / 0.6578 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007534/0.8007, allocations: 6.47 MB / 0.6641 GB, free: 96.84 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.006e-05/0.8008, allocations: 50.47 kB / 0.6641 GB, free: 96.79 MB / 458.7 MB Notification: Performance of pre-optimization done (n=155): time 3.306e-06/0.8008, allocations: 0 / 0.6641 GB, free: 96.79 MB / 458.7 MB Notification: Performance of matching and sorting (n=197): time 0.01768/0.8185, allocations: 8.575 MB / 0.6725 GB, free: 95.47 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009078/0.8276, allocations: 10.74 MB / 0.683 GB, free: 89.62 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003052/0.8307, allocations: 2.634 MB / 0.6856 GB, free: 89.34 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001916/0.8309, allocations: 56.95 kB / 0.6856 GB, free: 89.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008981/0.8318, allocations: 2.352 MB / 0.6879 GB, free: 88.05 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004367/0.8322, allocations: 0.7162 MB / 0.6886 GB, free: 87.62 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/0.8324, allocations: 99.59 kB / 0.6887 GB, free: 87.62 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.8326, allocations: 0.4979 MB / 0.6892 GB, free: 87.31 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001652/0.8342, allocations: 1.442 MB / 0.6906 GB, free: 87.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002385/0.8366, allocations: 4.006 MB / 0.6945 GB, free: 84.01 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002466/0.8391, allocations: 2.424 MB / 0.6969 GB, free: 83.88 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.95e-05/0.8391, allocations: 22.97 kB / 0.6969 GB, free: 83.88 MB / 458.7 MB Notification: Performance of matching and sorting (n=619) (initialization): time 0.006875/0.846, allocations: 5.857 MB / 0.7026 GB, free: 82.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.541e-05/0.8461, allocations: 47.52 kB / 0.7027 GB, free: 82.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.877e-05/0.8461, allocations: 91.47 kB / 0.7028 GB, free: 82.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/0.8472, allocations: 0.5635 MB / 0.7033 GB, free: 81.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002421/0.8496, allocations: 1.008 MB / 0.7043 GB, free: 81.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007041/0.8567, allocations: 8.413 MB / 0.7125 GB, free: 76.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002748/0.8595, allocations: 235.5 kB / 0.7127 GB, free: 75.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003273/0.8598, allocations: 278.9 kB / 0.713 GB, free: 75.94 MB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (552): * Single equations (assignments): 545 * 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 {(4,68.8%) 20,(1,100.0%) 9} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.000466/0.8603, allocations: 460.8 kB / 0.7134 GB, free: 75.56 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002992/0.8606, allocations: 270.6 kB / 0.7137 GB, free: 75.41 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003786/0.8644, allocations: 2.792 MB / 0.7164 GB, free: 74.39 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.362e-05/0.8645, allocations: 33.84 kB / 0.7165 GB, free: 74.39 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.8645, allocations: 5.562 kB / 0.7165 GB, free: 74.39 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.8645, allocations: 9.281 kB / 0.7165 GB, free: 74.39 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01303/0.8776, allocations: 9.19 MB / 0.7254 GB, free: 70.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.8776, allocations: 3.75 kB / 0.7254 GB, free: 70.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006887/0.8783, allocations: 213.7 kB / 0.7257 GB, free: 70.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001239/0.8796, allocations: 0.5635 MB / 0.7262 GB, free: 70.55 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.049e-05/0.8797, allocations: 43.05 kB / 0.7262 GB, free: 70.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007565/0.8872, allocations: 8.533 MB / 0.7346 GB, free: 64.64 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004688/0.892, allocations: 5.597 MB / 0.74 GB, free: 59.28 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004806/0.8968, allocations: 4.352 MB / 0.7443 GB, free: 55.25 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006116/0.8974, allocations: 360.4 kB / 0.7446 GB, free: 54.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002583/0.8977, allocations: 32.94 kB / 0.7447 GB, free: 54.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008903/0.8986, allocations: 84.27 kB / 0.7447 GB, free: 54.81 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002223/0.8988, allocations: 130 kB / 0.7449 GB, free: 54.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.804e-05/0.8989, allocations: 56.27 kB / 0.7449 GB, free: 54.68 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002178/0.9011, allocations: 1.851 MB / 0.7467 GB, free: 53.02 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.9011, allocations: 0 / 0.7467 GB, free: 53.02 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00308/0.9042, allocations: 0.8986 MB / 0.7476 GB, free: 52.13 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 117 * 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 {(4,68.8%) 16,(2,100.0%) 11} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003052/0.9045, allocations: 181.6 kB / 0.7478 GB, free: 51.96 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004395/0.9089, allocations: 3.99 MB / 0.7517 GB, free: 48.27 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.9089, allocations: 7.281 kB / 0.7517 GB, free: 48.27 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001636/0.9106, allocations: 1.611 MB / 0.7533 GB, free: 46.76 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001497/0.9121, allocations: 392.9 kB / 0.7536 GB, free: 46.45 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007994/0.9201, allocations: 6.133 MB / 0.7596 GB, free: 40.86 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002226/0.9223, allocations: 2.904 MB / 0.7625 GB, free: 38.59 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002721/0.9251, allocations: 1.327 MB / 0.7638 GB, free: 37.76 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004047/0.9255, allocations: 197.1 kB / 0.7639 GB, free: 37.57 MB / 458.7 MB Notification: Performance of SimCode: time 8.02e-07/0.9255, allocations: 0 / 0.7639 GB, free: 37.57 MB / 458.7 MB Notification: Performance of Templates: time 0.04524/0.9707, allocations: 32.25 MB / 0.7954 GB, free: 8.531 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.sim & ./PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1)