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.001329/0.001329, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001697/0.001697, allocations: 203.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.567/1.567, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002587/0.0002587, allocations: 8 kB / 306.6 MB, free: 1.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1272, allocations: 51.49 MB / 358.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.002781/0.13, allocations: 1.638 MB / 359.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.1313, allocations: 0.6705 MB / 360.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.483e-05/0.1314, allocations: 7.938 kB / 360.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.665e-05/0.1314, allocations: 11.86 kB / 360.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000162/0.1316, allocations: 43.86 kB / 360.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003685/0.132, allocations: 95.8 kB / 360.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002488/0.1323, allocations: 187.6 kB / 360.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001644/0.1324, allocations: 52.77 kB / 360.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002855/0.1327, allocations: 139.5 kB / 360.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002048/0.1329, allocations: 151.4 kB / 361 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.618e-05/0.133, allocations: 20 kB / 361.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.712e-05/0.1331, allocations: 16 kB / 361.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.293e-05/0.1331, allocations: 55.8 kB / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.759e-05/0.1332, allocations: 65.58 kB / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002396/0.1335, allocations: 191.8 kB / 361.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1335, allocations: 0 / 361.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1335, allocations: 0 / 361.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.1335, allocations: 0 / 361.4 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001787/0.1353, allocations: 0.7221 MB / 362.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.1353, allocations: 8.031 kB / 362.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003676/0.1357, allocations: 63.67 kB / 362.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.136, allocations: 198.5 kB / 362.4 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.714e-05/0.136, allocations: 23.98 kB / 362.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.981e-05/0.1361, allocations: 39.95 kB / 362.4 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009246/0.1371, allocations: 370.9 kB / 362.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1371, allocations: 4 kB / 362.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.014e-05/0.1371, allocations: 11.98 kB / 362.8 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.1372, allocations: 4 kB / 362.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008407/0.138, allocations: 291.8 kB / 363.1 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/0.1392, allocations: 0.7187 MB / 363.8 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000915/0.1401, allocations: 412.9 kB / 364.2 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.952e-05/0.1402, allocations: 8 kB / 364.2 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008852/0.1411, allocations: 411.1 kB / 364.6 MB, free: 7.148 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.134e-06/0.1411, allocations: 4 kB / 364.6 MB, free: 7.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.002044/0.1431, allocations: 0.8326 MB / 365.5 MB, free: 6.305 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.87e-05/0.1433, allocations: 71.33 kB / 365.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.1435, allocations: 196 kB / 365.7 MB, free: 6.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.518e-05/0.1435, allocations: 37.7 kB / 365.8 MB, free: 5.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.1436, allocations: 136.9 kB / 365.9 MB, free: 5.836 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.1438, allocations: 106.6 kB / 366 MB, free: 5.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.261e-05/0.1438, allocations: 8 kB / 366 MB, free: 5.723 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002067/0.144, allocations: 346.8 kB / 366.3 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004793/0.1445, allocations: 169 kB / 366.5 MB, free: 5.207 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005633/0.1451, allocations: 253.4 kB / 366.8 MB, free: 4.934 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005459/0.1456, allocations: 255.5 kB / 367 MB, free: 4.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.1457, allocations: 0 / 367 MB, free: 4.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001314/0.147, allocations: 0.6086 MB / 367.6 MB, free: 4.039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001913/0.1472, allocations: 93.09 kB / 367.7 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.1472, allocations: 3.938 kB / 367.7 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.492e-05/0.1472, allocations: 4 kB / 367.7 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003875/0.1476, allocations: 83.88 kB / 367.8 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.947e-05/0.1477, allocations: 15.94 kB / 367.8 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003531/0.148, allocations: 75.64 kB / 367.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.888e-05/0.1481, allocations: 19.98 kB / 367.9 MB, free: 3.73 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 ($PRE.signalExtrema3.t_min,signalExtrema3.t_min,$PRE.signalExtrema3.t_max,signalExtrema3.t_max,$PRE.signalExtrema2.t_min,signalExtrema2.t_min,$PRE.signalExtrema2.t_max,signalExtrema2.t_max,$PRE.signalExtrema1.t_min,signalExtrema1.t_min,$PRE.signalExtrema1.t_max,signalExtrema1.t_max,$whenCondition5,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$PRE.sawTooth.T_start,sawTooth.T_start,$PRE.sawTooth.count,sawTooth.count,$PRE.signalExtrema1.y_min,signalExtrema1.y_min,$PRE.signalExtrema1.y_max,signalExtrema1.y_max,$PRE.signalExtrema2.y_min,signalExtrema2.y_min,$PRE.signalExtrema2.y_max,signalExtrema2.y_max,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$PRE.sawTooth1.T_start,sawTooth1.T_start,$PRE.sawTooth1.count,sawTooth1.count,$PRE.signalExtrema3.y_min,signalExtrema3.y_min,$PRE.signalExtrema3.y_max,signalExtrema3.y_max) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002231/0.1483, allocations: 157.8 kB / 368.1 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.959e-05/0.1484, allocations: 31.67 kB / 368.1 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001028/0.1485, allocations: 34.98 kB / 368.1 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.764e-06/0.1485, allocations: 4 kB / 368.1 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.1485, allocations: 0 / 368.1 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/0.1485, allocations: 3.984 kB / 368.1 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005154/0.149, allocations: 345.1 kB / 368.5 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1491, allocations: 0 / 368.5 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002751/0.1493, allocations: 59.95 kB / 368.5 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.1493, allocations: 3.953 kB / 368.5 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.686e-05/0.1494, allocations: 15.98 kB / 368.5 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1494, allocations: 0 / 368.5 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.1494, allocations: 0 / 368.5 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/0.1514, allocations: 0.9423 MB / 369.5 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.842e-05/0.1515, allocations: 104.8 kB / 369.6 MB, free: 1.949 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.711e-05/0.1516, allocations: 19.95 kB / 369.6 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003966/0.152, allocations: 83.92 kB / 369.7 MB, free: 1.848 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.1521, allocations: 51.95 kB / 369.7 MB, free: 1.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.566e-05/0.1522, allocations: 31.97 kB / 369.8 MB, free: 1.766 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001168/0.1523, allocations: 135.3 kB / 369.9 MB, free: 1.633 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1523, allocations: 0 / 369.9 MB, free: 1.633 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003381/0.1527, allocations: 76 kB / 370 MB, free: 1.559 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00019/0.1529, allocations: 125.4 kB / 370.1 MB, free: 1.426 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.1542, allocations: 0.6471 MB / 370.7 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1542, allocations: 0 / 370.7 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006204/0.1549, allocations: 288.1 kB / 371 MB, free: 472 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.1552, allocations: 28.16 kB / 371.1 MB, free: 444 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2165/0.3717, allocations: 0.625 MB / 371.7 MB, free: 19.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.372, allocations: 0.7585 MB / 372.4 MB, free: 19.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002542/0.3723, allocations: 33.84 kB / 372.5 MB, free: 19.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.3724, allocations: 25.75 kB / 372.5 MB, free: 19.25 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3724, allocations: 0 / 372.5 MB, free: 19.25 MB / 302.1 MB Notification: Performance of Templates: time 0.009329/0.3817, allocations: 3.473 MB / 376 MB, free: 19.12 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)