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.0009006/0.0009007, allocations: 170.1 kB / 16.11 MB, free: 5.582 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.348/1.348, allocations: 223.3 MB / 240.1 MB, free: 11.69 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.0007791/0.0007791, allocations: 96.25 kB / 291.3 MB, free: 10.77 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04047/0.04047, allocations: 8.949 MB / 351.4 MB, free: 14.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003281/0.0003281, allocations: 14.16 kB / 414.4 MB, free: 56.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08305/0.08339, allocations: 52.38 MB / 466.8 MB, free: 4.391 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4176/0.5011, allocations: 87.59 MB / 0.5414 GB, free: 13.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.5014, allocations: 74.16 kB / 0.5415 GB, free: 13.87 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1777/0.6791, allocations: 69.56 MB / 0.6094 GB, free: 10.08 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.336e-06/0.6791, allocations: 3.938 kB / 0.6094 GB, free: 10.07 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001587/0.6793, allocations: 67.98 kB / 0.6094 GB, free: 10.01 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.01469/0.694, allocations: 3.658 MB / 0.613 GB, free: 6.285 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.694, allocations: 12.03 kB / 0.613 GB, free: 6.273 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009305/0.7033, allocations: 1.981 MB / 0.615 GB, free: 4.285 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004917/0.7083, allocations: 1.885 MB / 0.6168 GB, free: 2.355 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004359/0.7088, allocations: 254.4 kB / 0.6171 GB, free: 2.105 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002542/0.7113, allocations: 335.8 kB / 0.6174 GB, free: 1.777 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02351/0.7349, allocations: 8.511 MB / 0.6257 GB, free: 8.812 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002424/0.7352, allocations: 27.81 kB / 0.6257 GB, free: 8.785 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001706/0.7369, allocations: 151.9 kB / 0.6259 GB, free: 8.637 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001769/0.7387, allocations: 0.9981 MB / 0.6268 GB, free: 7.637 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01833/0.757, allocations: 7.83 MB / 0.6345 GB, free: 15.8 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2608/1.018, allocations: 28.48 MB / 0.6623 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007134/1.025, allocations: 2.816 MB / 0.665 GB, free: 100.3 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/1.027, allocations: 0.9747 MB / 0.666 GB, free: 100.2 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01054/1.037, allocations: 6.451 MB / 0.6723 GB, free: 96.8 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/1.037, allocations: 49 kB / 0.6723 GB, free: 96.76 MB / 458.7 MB Notification: Performance of pre-optimization done (n=155): time 5.039e-06/1.037, allocations: 3.422 kB / 0.6723 GB, free: 96.76 MB / 458.7 MB Notification: Performance of matching and sorting (n=197): time 0.02263/1.06, allocations: 9.812 MB / 0.6819 GB, free: 95.24 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009831/1.07, allocations: 10.79 MB / 0.6925 GB, free: 89.37 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004041/1.074, allocations: 2.963 MB / 0.6953 GB, free: 89.09 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003371/1.074, allocations: 53.44 kB / 0.6954 GB, free: 89.06 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001533/1.076, allocations: 2.344 MB / 0.6977 GB, free: 87.81 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007093/1.077, allocations: 0.7266 MB / 0.6984 GB, free: 87.39 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00019/1.077, allocations: 95.83 kB / 0.6985 GB, free: 87.39 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002288/1.077, allocations: 0.5006 MB / 0.699 GB, free: 87.07 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002149/1.079, allocations: 1.486 MB / 0.7004 GB, free: 87.06 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003115/1.082, allocations: 4.068 MB / 0.7044 GB, free: 83.16 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006061/1.088, allocations: 6.027 MB / 0.7103 GB, free: 78.62 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.665e-05/1.088, allocations: 28.72 kB / 0.7103 GB, free: 78.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=619) (initialization): time 0.009847/1.098, allocations: 5.951 MB / 0.7161 GB, free: 76.31 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.074e-05/1.098, allocations: 46.31 kB / 0.7162 GB, free: 76.31 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001203/1.099, allocations: 95.78 kB / 0.7163 GB, free: 76.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001226/1.1, allocations: 0.5453 MB / 0.7168 GB, free: 76.19 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002904/1.103, allocations: 1.016 MB / 0.7178 GB, free: 76.07 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007749/1.11, allocations: 8.431 MB / 0.726 GB, free: 70.19 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003398/1.114, allocations: 239.2 kB / 0.7262 GB, free: 70.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004865/1.114, allocations: 280.2 kB / 0.7265 GB, free: 70.07 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 () * Number of clocked 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.002518/1.117, allocations: 1.73 MB / 0.7282 GB, free: 69.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004044/1.117, allocations: 270.1 kB / 0.7285 GB, free: 69.05 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004044/1.121, allocations: 2.838 MB / 0.7312 GB, free: 67.98 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.989e-05/1.122, allocations: 30.97 kB / 0.7313 GB, free: 67.98 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/1.122, allocations: 7.594 kB / 0.7313 GB, free: 67.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/1.122, allocations: 6.469 kB / 0.7313 GB, free: 67.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01254/1.134, allocations: 9.247 MB / 0.7403 GB, free: 64.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/1.134, allocations: 7 kB / 0.7403 GB, free: 64.22 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006904/1.135, allocations: 210.9 kB / 0.7405 GB, free: 64.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001204/1.136, allocations: 0.5712 MB / 0.7411 GB, free: 64.06 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.689e-05/1.136, allocations: 39.44 kB / 0.7411 GB, free: 64.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007599/1.144, allocations: 8.547 MB / 0.7495 GB, free: 56.29 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005018/1.149, allocations: 5.64 MB / 0.755 GB, free: 50.92 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005318/1.154, allocations: 4.134 MB / 0.759 GB, free: 47.25 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008418/1.155, allocations: 359.2 kB / 0.7593 GB, free: 46.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003828/1.155, allocations: 39.94 kB / 0.7594 GB, free: 46.86 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/1.157, allocations: 82.94 kB / 0.7595 GB, free: 46.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002967/1.157, allocations: 131.5 kB / 0.7596 GB, free: 46.72 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/1.157, allocations: 64.05 kB / 0.7596 GB, free: 46.67 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002693/1.16, allocations: 1.88 MB / 0.7615 GB, free: 45.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.7e-07/1.16, allocations: 0 / 0.7615 GB, free: 45.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003877/1.164, allocations: 0.8912 MB / 0.7624 GB, free: 44.21 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 () * Number of clocked 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.0003484/1.164, allocations: 183.1 kB / 0.7625 GB, free: 44.04 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005962/1.17, allocations: 4.072 MB / 0.7665 GB, free: 40.42 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/1.17, allocations: 4.062 kB / 0.7665 GB, free: 40.41 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002157/1.173, allocations: 1.65 MB / 0.7681 GB, free: 38.91 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003186/1.176, allocations: 423.1 kB / 0.7685 GB, free: 38.57 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/1.187, allocations: 8.895 MB / 0.7772 GB, free: 30.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002538/1.189, allocations: 2.822 MB / 0.78 GB, free: 28.05 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002977/1.192, allocations: 1.327 MB / 0.7813 GB, free: 27.21 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004194/1.193, allocations: 198.2 kB / 0.7815 GB, free: 27.04 MB / 458.7 MB Notification: Performance of SimCode: time 6.11e-07/1.193, allocations: 0 / 0.7815 GB, free: 27.04 MB / 458.7 MB Notification: Performance of Templates: time 0.04886/1.242, allocations: 32.35 MB / 0.813 GB, free: 11.84 MB / 474.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)