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.001562/0.001562, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001889/0.001889, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.9 MB, free: 9.043 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 58.22 kB / 306.9 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1114, allocations: 50.53 MB / 357.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003934/0.1154, allocations: 2.078 MB / 359.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.117, allocations: 0.752 MB / 360.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002034/0.1173, allocations: 7.938 kB / 360.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.707e-05/0.1174, allocations: 11.86 kB / 360.3 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002291/0.1177, allocations: 35.66 kB / 360.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004824/0.1181, allocations: 127.8 kB / 360.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004175/0.1186, allocations: 323.1 kB / 360.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/0.1188, allocations: 60.78 kB / 360.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003639/0.1191, allocations: 143.5 kB / 360.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.1194, allocations: 159.4 kB / 361.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.446e-05/0.1195, allocations: 16 kB / 361.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.1196, allocations: 20 kB / 361.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.72e-05/0.1197, allocations: 63.73 kB / 361.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.1199, allocations: 131.3 kB / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000278/0.1201, allocations: 191.9 kB / 361.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1202, allocations: 3.984 kB / 361.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1202, allocations: 0 / 361.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.318e-05/0.1202, allocations: 0 / 361.5 MB, free: 10.16 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.001664/0.1219, allocations: 0.749 MB / 362.3 MB, free: 9.352 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.1219, allocations: 8.031 kB / 362.3 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003749/0.1223, allocations: 56.62 kB / 362.3 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003301/0.1226, allocations: 268.7 kB / 362.6 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.728e-05/0.1227, allocations: 20.38 kB / 362.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.52e-05/0.1228, allocations: 32.27 kB / 362.6 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008558/0.1236, allocations: 355.1 kB / 363 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.1236, allocations: 3.938 kB / 363 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.913e-05/0.1237, allocations: 11.98 kB / 363 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.1237, allocations: 4 kB / 363 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007873/0.1245, allocations: 251.7 kB / 363.3 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.1257, allocations: 0.7109 MB / 364 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008996/0.1266, allocations: 356.9 kB / 364.3 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005206/0.1271, allocations: 217.3 kB / 364.5 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.1272, allocations: 4 kB / 364.5 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008982/0.1281, allocations: 394.5 kB / 364.9 MB, free: 6.562 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.435e-06/0.1281, allocations: 0 / 364.9 MB, free: 6.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.001893/0.13, allocations: 0.7541 MB / 365.7 MB, free: 5.801 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.197e-05/0.1301, allocations: 71.38 kB / 365.7 MB, free: 5.719 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.1302, allocations: 191.8 kB / 365.9 MB, free: 5.523 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.69e-05/0.1303, allocations: 45.7 kB / 366 MB, free: 5.473 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.1304, allocations: 136.9 kB / 366.1 MB, free: 5.332 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.1305, allocations: 98.61 kB / 366.2 MB, free: 5.234 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/0.1307, allocations: 102.2 kB / 366.3 MB, free: 5.129 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.1309, allocations: 338.8 kB / 366.6 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004273/0.1313, allocations: 165 kB / 366.8 MB, free: 4.625 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004557/0.1318, allocations: 233.2 kB / 367 MB, free: 4.375 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008452/0.1326, allocations: 445.7 kB / 367.5 MB, free: 3.898 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.1326, allocations: 0 / 367.5 MB, free: 3.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001144/0.1338, allocations: 0.5644 MB / 368 MB, free: 3.309 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.678e-05/0.1339, allocations: 89.11 kB / 368.1 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1339, allocations: 8.219 kB / 368.1 MB, free: 3.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.1339, allocations: 4 kB / 368.1 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003666/0.1343, allocations: 83.81 kB / 368.2 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.1343, allocations: 4 kB / 368.2 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003535/0.1347, allocations: 67.64 kB / 368.3 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.266e-05/0.1347, allocations: 19.98 kB / 368.3 MB, free: 3.02 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.0002012/0.1349, allocations: 173.6 kB / 368.5 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.842e-05/0.135, allocations: 35.61 kB / 368.5 MB, free: 2.805 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.367e-05/0.1351, allocations: 34.98 kB / 368.5 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.1351, allocations: 4 kB / 368.5 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.1351, allocations: 0 / 368.5 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1351, allocations: 0 / 368.5 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003536/0.1355, allocations: 345.2 kB / 368.9 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1355, allocations: 0 / 368.9 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002862/0.1358, allocations: 47.95 kB / 368.9 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.704e-06/0.1358, allocations: 4 kB / 368.9 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.483e-05/0.1359, allocations: 19.91 kB / 368.9 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.1359, allocations: 0 / 368.9 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.1359, allocations: 7.938 kB / 368.9 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001923/0.1378, allocations: 0.8564 MB / 369.8 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.328e-05/0.1379, allocations: 104.7 kB / 369.9 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.624e-05/0.138, allocations: 16.03 kB / 369.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003563/0.1383, allocations: 55.94 kB / 370 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.1385, allocations: 47.92 kB / 370 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.323e-05/0.1385, allocations: 27.97 kB / 370.1 MB, free: 1.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001709/0.1387, allocations: 136.2 kB / 370.2 MB, free: 1.031 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1387, allocations: 4 kB / 370.2 MB, free: 1.027 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003496/0.1391, allocations: 76 kB / 370.3 MB, free: 0.9531 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.000185/0.1393, allocations: 131.7 kB / 370.4 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.1405, allocations: 0.6063 MB / 371 MB, free: 176 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1405, allocations: 4 kB / 371 MB, free: 172 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1595/0.3, allocations: 265.4 kB / 371.3 MB, free: 20.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00041/0.3005, allocations: 36.5 kB / 371.3 MB, free: 20.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/0.3017, allocations: 0.6455 MB / 371.9 MB, free: 20.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001652/0.3019, allocations: 0.7526 MB / 372.7 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/0.302, allocations: 34.48 kB / 372.7 MB, free: 19.47 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.302, allocations: 0 / 372.7 MB, free: 19.47 MB / 302.1 MB Notification: Performance of Templates: time 0.006697/0.3087, allocations: 3.946 MB / 376.7 MB, free: 19.23 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)