Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.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.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009658/0.0009654, allocations: 91.97 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008734/0.0008733, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002418/0.0002417, allocations: 8 kB / 307.7 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1066, allocations: 51.51 MB / 359.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.002359/0.109, allocations: 1.727 MB / 361 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.1106, allocations: 0.7365 MB / 361.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002114/0.1108, allocations: 11.88 kB / 361.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.409e-05/0.1109, allocations: 19.84 kB / 361.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002198/0.1111, allocations: 35.66 kB / 361.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005376/0.1117, allocations: 127.8 kB / 361.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004648/0.1121, allocations: 323.1 kB / 362.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.1123, allocations: 64.72 kB / 362.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003439/0.1127, allocations: 135.5 kB / 362.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002247/0.1129, allocations: 143.4 kB / 362.6 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.433e-05/0.113, allocations: 20 kB / 362.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.916e-05/0.1131, allocations: 16 kB / 362.6 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.768e-05/0.1132, allocations: 63.73 kB / 362.7 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002245/0.1134, allocations: 145 kB / 362.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003467/0.1138, allocations: 271.3 kB / 363.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1138, allocations: 0 / 363.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1138, allocations: 0 / 363.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.1138, allocations: 0 / 363.1 MB, free: 9.438 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001649/0.1154, allocations: 0.7237 MB / 363.8 MB, free: 8.648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.1155, allocations: 8.031 kB / 363.8 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004358/0.1159, allocations: 68.47 kB / 363.9 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/0.1163, allocations: 268.7 kB / 364.1 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.875e-05/0.1164, allocations: 20.38 kB / 364.1 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.492e-05/0.1165, allocations: 36.36 kB / 364.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009192/0.1174, allocations: 379.1 kB / 364.5 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.1174, allocations: 0 / 364.5 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.011e-05/0.1175, allocations: 8 kB / 364.6 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.1175, allocations: 7.984 kB / 364.6 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009471/0.1185, allocations: 294.5 kB / 364.9 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/0.1198, allocations: 0.7225 MB / 365.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.1209, allocations: 400.9 kB / 366 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005999/0.1215, allocations: 233.6 kB / 366.2 MB, free: 6.109 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.192e-05/0.1215, allocations: 7.938 kB / 366.2 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009564/0.1225, allocations: 426.8 kB / 366.6 MB, free: 5.672 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.455e-06/0.1225, allocations: 0 / 366.6 MB, free: 5.672 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.002175/0.1247, allocations: 0.8362 MB / 367.5 MB, free: 4.828 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.325e-05/0.1248, allocations: 71.38 kB / 367.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00022/0.125, allocations: 199.7 kB / 367.7 MB, free: 4.543 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.168e-05/0.1251, allocations: 45.64 kB / 367.8 MB, free: 4.492 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.1252, allocations: 140.9 kB / 367.9 MB, free: 4.348 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.1253, allocations: 98.7 kB / 368 MB, free: 4.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.1254, allocations: 53.69 kB / 368 MB, free: 4.191 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.1256, allocations: 342.8 kB / 368.4 MB, free: 3.848 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004911/0.1261, allocations: 173 kB / 368.6 MB, free: 3.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005292/0.1266, allocations: 261.2 kB / 368.8 MB, free: 3.398 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009622/0.1276, allocations: 477.6 kB / 369.3 MB, free: 2.891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.1276, allocations: 4 kB / 369.3 MB, free: 2.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001263/0.1289, allocations: 0.5957 MB / 369.9 MB, free: 2.266 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.174e-05/0.129, allocations: 93.09 kB / 370 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.291e-05/0.129, allocations: 4.156 kB / 370 MB, free: 2.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.718e-05/0.129, allocations: 8 kB / 370 MB, free: 2.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003902/0.1294, allocations: 79.89 kB / 370.1 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.638e-05/0.1294, allocations: 11.92 kB / 370.1 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003808/0.1298, allocations: 79.64 kB / 370.1 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.247e-05/0.1299, allocations: 20 kB / 370.2 MB, free: 1.957 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 46 (signalExtrema3.t_min,$PRE.signalExtrema3.t_min,signalExtrema3.t_max,$PRE.signalExtrema3.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,$whenCondition5,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,sawTooth.count,$PRE.sawTooth.count,sawTooth.T_start,$PRE.sawTooth.T_start,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,signalExtrema3.y_max,$PRE.signalExtrema3.y_max,signalExtrema3.y_min,$PRE.signalExtrema3.y_min,sawTooth1.count,$PRE.sawTooth1.count,sawTooth1.T_start,$PRE.sawTooth1.T_start,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 3 * 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.0002079/0.1301, allocations: 165.6 kB / 370.3 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.147e-05/0.1302, allocations: 23.72 kB / 370.3 MB, free: 1.762 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001294/0.1303, allocations: 38.92 kB / 370.4 MB, free: 1.727 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.1303, allocations: 8 kB / 370.4 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.1304, allocations: 8 kB / 370.4 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.1304, allocations: 0 / 370.4 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005348/0.1309, allocations: 341.2 kB / 370.7 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.1309, allocations: 0 / 370.7 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003111/0.1313, allocations: 55.95 kB / 370.8 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.1313, allocations: 0 / 370.8 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.056e-05/0.1313, allocations: 23.97 kB / 370.8 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1313, allocations: 0 / 370.8 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1313, allocations: 0 / 370.8 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002241/0.1336, allocations: 0.95 MB / 371.8 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.537e-05/0.1337, allocations: 100.8 kB / 371.9 MB, free: 168 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.373e-05/0.1338, allocations: 16.03 kB / 371.9 MB, free: 152 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004072/0.1342, allocations: 79.92 kB / 372 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.1343, allocations: 43.94 kB / 372 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.2294/0.3637, allocations: 33.08 kB / 372 MB, free: 19.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002199/0.364, allocations: 135 kB / 372.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.364, allocations: 1.031 kB / 372.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006526/0.3646, allocations: 80.36 kB / 372.2 MB, free: 19.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (signalExtrema3.x,signalExtrema1.x,signalExtrema2.x) * Number of discrete variables: 28 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,sawTooth1.T_start,sawTooth1.count,signalExtrema3.y_min,signalExtrema3.y_max,signalExtrema3.t_min,signalExtrema3.t_max,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,sawTooth.T_start,sawTooth.count,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: 18 (sawTooth.count,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.y_min,signalExtrema1.t_min,signalExtrema1.u,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.y_min,signalExtrema2.t_min,signalExtrema2.u,pulse.count,sawTooth1.count,signalExtrema3.y_max,signalExtrema3.t_max,signalExtrema3.y_min,signalExtrema3.t_min,signalExtrema3.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * 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.0002415/0.3649, allocations: 126.4 kB / 372.4 MB, free: 19.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001545/0.3664, allocations: 0.6554 MB / 373 MB, free: 19.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3665, allocations: 0 / 373 MB, free: 19.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007248/0.3672, allocations: 295.5 kB / 373.3 MB, free: 19.37 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003944/0.3676, allocations: 36.12 kB / 373.3 MB, free: 19.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/0.369, allocations: 0.6559 MB / 374 MB, free: 19.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002125/0.3692, allocations: 0.7547 MB / 374.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000168/0.3694, allocations: 35.27 kB / 374.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.577e-05/0.3695, allocations: 27.67 kB / 374.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3695, allocations: 0 / 374.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of Templates: time 0.0096/0.3791, allocations: 3.629 MB / 378.4 MB, free: 18.16 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1)