Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009884/0.0009884, allocations: 96.5 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 207.8 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002493/0.0002494, allocations: 8 kB / 308.4 MB, free: 0.8594 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1013, allocations: 51.53 MB / 359.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.001967/0.1033, allocations: 1.431 MB / 361.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001232/0.1046, allocations: 0.6507 MB / 362 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.1048, allocations: 3.938 kB / 362 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.1049, allocations: 11.92 kB / 362 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.429e-05/0.105, allocations: 15.8 kB / 362 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003557/0.1053, allocations: 83.86 kB / 362.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000191/0.1055, allocations: 147.5 kB / 362.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.1057, allocations: 29.42 kB / 362.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.1059, allocations: 51.83 kB / 362.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001123/0.106, allocations: 67.67 kB / 362.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.106, allocations: 8 kB / 362.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.512e-05/0.1061, allocations: 12 kB / 362.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.601e-05/0.1062, allocations: 27.89 kB / 362.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.04e-05/0.1062, allocations: 81.44 kB / 362.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001539/0.1064, allocations: 92.02 kB / 362.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1064, allocations: 0 / 362.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1064, allocations: 0 / 362.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.1064, allocations: 0 / 362.6 MB, free: 10.6 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.000664/0.1071, allocations: 474.4 kB / 363.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.1072, allocations: 8.031 kB / 363.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002557/0.1074, allocations: 32.83 kB / 363.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002257/0.1077, allocations: 216.6 kB / 363.3 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.68e-05/0.1077, allocations: 12.38 kB / 363.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.825e-05/0.1077, allocations: 12.12 kB / 363.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004801/0.1082, allocations: 181.5 kB / 363.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.1082, allocations: 4 kB / 363.5 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.569e-05/0.1083, allocations: 7.984 kB / 363.5 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.1083, allocations: 0 / 363.5 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003808/0.1087, allocations: 131.8 kB / 363.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007119/0.1094, allocations: 432.4 kB / 364.1 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006256/0.11, allocations: 234.4 kB / 364.3 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003075/0.1104, allocations: 116.8 kB / 364.4 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.1104, allocations: 3.938 kB / 364.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004693/0.1109, allocations: 191.3 kB / 364.6 MB, free: 8.406 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.264e-06/0.1109, allocations: 0 / 364.6 MB, free: 8.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.001105/0.112, allocations: 408.4 kB / 365 MB, free: 8.004 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/0.1121, allocations: 55.41 kB / 365.1 MB, free: 7.938 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.1122, allocations: 167.4 kB / 365.2 MB, free: 7.766 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.1122, allocations: 33.7 kB / 365.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.204e-05/0.1123, allocations: 104.4 kB / 365.4 MB, free: 7.621 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.373e-05/0.1123, allocations: 35.55 kB / 365.4 MB, free: 7.586 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.969e-05/0.1124, allocations: 25.72 kB / 365.4 MB, free: 7.555 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1125, allocations: 326.8 kB / 365.7 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.1126, allocations: 51.97 kB / 365.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.1128, allocations: 121.6 kB / 365.9 MB, free: 7.027 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003274/0.1132, allocations: 188.3 kB / 366.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.1132, allocations: 0 / 366.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000398/0.1136, allocations: 213.4 kB / 366.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.1136, allocations: 7.984 kB / 366.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.1136, allocations: 4 kB / 366.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.1136, allocations: 7.938 kB / 366.3 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.1138, allocations: 35.92 kB / 366.4 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.1138, allocations: 4 kB / 366.4 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.1139, allocations: 27.92 kB / 366.4 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.114, allocations: 12 kB / 366.4 MB, free: 6.5 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 (signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,$whenCondition2,$whenCondition1,signalExtrema2.y_max,$PRE.signalExtrema2.y_max,signalExtrema2.y_min,$PRE.signalExtrema2.y_min,signalExtrema1.y_max,$PRE.signalExtrema1.y_max,signalExtrema1.y_min,$PRE.signalExtrema1.y_min) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000113/0.1141, allocations: 132.1 kB / 366.5 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.838e-05/0.1141, allocations: 15.81 kB / 366.6 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007488/0.1149, allocations: 318.3 kB / 366.9 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.1149, allocations: 3.938 kB / 366.9 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.1149, allocations: 3.984 kB / 366.9 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1149, allocations: 0 / 366.9 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009893/0.1159, allocations: 0.6037 MB / 367.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.1159, allocations: 3.938 kB / 367.5 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.116, allocations: 23.92 kB / 367.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.116, allocations: 0 / 367.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.14e-05/0.1161, allocations: 11.98 kB / 367.5 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.1161, allocations: 0 / 367.5 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1161, allocations: 0 / 367.5 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.1172, allocations: 0.5275 MB / 368 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.772e-05/0.1173, allocations: 88.98 kB / 368.1 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.94e-05/0.1173, allocations: 11.98 kB / 368.1 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.1175, allocations: 40.03 kB / 368.2 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.136e-05/0.1176, allocations: 11.98 kB / 368.2 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.1176, allocations: 11.98 kB / 368.2 MB, free: 4.602 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.115e-05/0.1177, allocations: 106.8 kB / 368.3 MB, free: 4.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1177, allocations: 0 / 368.3 MB, free: 4.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002911/0.118, allocations: 43.83 kB / 368.3 MB, free: 4.457 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (sine.phi) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_min,signalExtrema1.t_max,signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_min,signalExtrema2.t_max) * Number of discrete states: 8 (signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.t_min,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.t_min) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001661/0.1182, allocations: 103.7 kB / 368.4 MB, free: 4.344 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000463/0.1186, allocations: 187.8 kB / 368.6 MB, free: 4.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1186, allocations: 0 / 368.6 MB, free: 4.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.1189, allocations: 112.4 kB / 368.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.1192, allocations: 15.92 kB / 368.8 MB, free: 4.035 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008037/0.12, allocations: 435.8 kB / 369.2 MB, free: 3.578 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.1204, allocations: 0.7126 MB / 369.9 MB, free: 2.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.142e-05/0.1205, allocations: 15.44 kB / 369.9 MB, free: 2.824 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1205, allocations: 3.938 kB / 369.9 MB, free: 2.82 MB / 302.1 MB Notification: Performance of Templates: time 0.003346/0.1238, allocations: 1.622 MB / 371.5 MB, free: 1.203 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)