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.00175/0.00175, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001911/0.001911, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 62.09 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1263, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003324/0.1296, allocations: 2.016 MB / 360.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001206/0.1309, allocations: 0.744 MB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.864e-05/0.131, allocations: 3.938 kB / 361.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.519e-05/0.131, allocations: 23.72 kB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000136/0.1312, allocations: 55.52 kB / 361.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003882/0.1316, allocations: 143.7 kB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003627/0.1319, allocations: 347.1 kB / 362.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.1321, allocations: 64.77 kB / 362.3 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002429/0.1324, allocations: 151.5 kB / 362.4 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001853/0.1326, allocations: 167.4 kB / 362.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.857e-05/0.1326, allocations: 32 kB / 362.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.941e-05/0.1327, allocations: 32 kB / 362.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.816e-05/0.1328, allocations: 71.8 kB / 362.7 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.1329, allocations: 147.3 kB / 362.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000309/0.1332, allocations: 302.9 kB / 363.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1332, allocations: 0 / 363.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1332, allocations: 0 / 363.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.1332, allocations: 0 / 363.2 MB, free: 9.051 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.001412/0.1347, allocations: 0.7429 MB / 363.9 MB, free: 8.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.1347, allocations: 12.03 kB / 363.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003203/0.135, allocations: 52.62 kB / 364 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003508/0.1354, allocations: 272.7 kB / 364.2 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.1354, allocations: 20.38 kB / 364.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.541e-05/0.1355, allocations: 32.27 kB / 364.3 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007403/0.1363, allocations: 363.1 kB / 364.6 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.1363, allocations: 0 / 364.6 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.076e-05/0.1363, allocations: 12 kB / 364.7 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.1363, allocations: 4 kB / 364.7 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007161/0.137, allocations: 247.8 kB / 364.9 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001/0.1381, allocations: 0.7108 MB / 365.6 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008239/0.1389, allocations: 368.9 kB / 366 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000495/0.1394, allocations: 197.9 kB / 366.2 MB, free: 5.852 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.901e-05/0.1394, allocations: 4 kB / 366.2 MB, free: 5.848 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007722/0.1402, allocations: 394.5 kB / 366.6 MB, free: 5.449 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.863e-06/0.1402, allocations: 0 / 366.6 MB, free: 5.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.001812/0.142, allocations: 0.7579 MB / 367.3 MB, free: 4.684 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.171e-05/0.1421, allocations: 71.39 kB / 367.4 MB, free: 4.602 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.1423, allocations: 191.8 kB / 367.6 MB, free: 4.406 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.298e-05/0.1424, allocations: 49.7 kB / 367.6 MB, free: 4.352 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.1425, allocations: 132.9 kB / 367.8 MB, free: 4.215 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.401e-05/0.1426, allocations: 110.6 kB / 367.9 MB, free: 4.105 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.1427, allocations: 90.23 kB / 367.9 MB, free: 4.012 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1429, allocations: 346.7 kB / 368.3 MB, free: 3.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003898/0.1433, allocations: 157 kB / 368.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000448/0.1437, allocations: 237.2 kB / 368.7 MB, free: 3.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007654/0.1445, allocations: 442.2 kB / 369.1 MB, free: 2.773 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.1445, allocations: 0 / 369.1 MB, free: 2.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001103/0.1456, allocations: 0.5715 MB / 369.7 MB, free: 2.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.16e-05/0.1457, allocations: 89.11 kB / 369.8 MB, free: 2.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.1457, allocations: 4 kB / 369.8 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.098e-05/0.1458, allocations: 7.984 kB / 369.8 MB, free: 2.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003598/0.1461, allocations: 75.83 kB / 369.8 MB, free: 1.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.1461, allocations: 4 kB / 369.9 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003447/0.1465, allocations: 67.64 kB / 369.9 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.266e-05/0.1466, allocations: 23.98 kB / 369.9 MB, free: 1.895 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.0002788/0.1468, allocations: 165.6 kB / 370.1 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.661e-05/0.1469, allocations: 31.61 kB / 370.1 MB, free: 1.691 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000113/0.147, allocations: 34.98 kB / 370.2 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.147, allocations: 4 kB / 370.2 MB, free: 1.656 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.1471, allocations: 4 kB / 370.2 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.1471, allocations: 4 kB / 370.2 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004691/0.1476, allocations: 345.2 kB / 370.5 MB, free: 1.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1476, allocations: 0 / 370.5 MB, free: 1.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002906/0.1479, allocations: 47.89 kB / 370.6 MB, free: 1.215 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.1479, allocations: 3.938 kB / 370.6 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.34e-05/0.1479, allocations: 19.97 kB / 370.6 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.1479, allocations: 0 / 370.6 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.1479, allocations: 4 kB / 370.6 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/0.1499, allocations: 0.8525 MB / 371.4 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.756e-05/0.15, allocations: 104.7 kB / 371.5 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.988e-05/0.1501, allocations: 20.03 kB / 371.6 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003277/0.1504, allocations: 55.92 kB / 371.6 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.1505, allocations: 56.02 kB / 371.7 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.826e-05/0.1506, allocations: 27.98 kB / 371.7 MB, free: 40 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.2171/0.3677, allocations: 136.3 kB / 371.8 MB, free: 20.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.3678, allocations: 0 / 371.8 MB, free: 20.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005312/0.3683, allocations: 78.81 kB / 371.9 MB, free: 20.45 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.0001675/0.3685, allocations: 124.1 kB / 372 MB, free: 20.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.3698, allocations: 0.606 MB / 372.6 MB, free: 20.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.3699, allocations: 1.5 kB / 372.6 MB, free: 20.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006701/0.3705, allocations: 270 kB / 372.9 MB, free: 20.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.3709, allocations: 40.47 kB / 372.9 MB, free: 20.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.3721, allocations: 0.5419 MB / 373.5 MB, free: 19.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001916/0.3723, allocations: 0.7587 MB / 374.2 MB, free: 19.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001455/0.3725, allocations: 35.11 kB / 374.3 MB, free: 19.24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.859e-05/0.3726, allocations: 33.19 kB / 374.3 MB, free: 19.23 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3726, allocations: 0.8438 kB / 374.3 MB, free: 19.23 MB / 302.1 MB Notification: Performance of Templates: time 0.008865/0.3814, allocations: 4.24 MB / 378.6 MB, free: 19.08 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 -s cvode -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1)