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.001731/0.001731, allocations: 113.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002882/0.002882, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.716/2.716, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001771, allocations: 59.89 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5266/0.5284, allocations: 50.55 MB / 409.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.005846/0.5343, allocations: 2.026 MB / 412 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002617/0.537, allocations: 0.7402 MB / 412.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002741/0.5373, allocations: 7.938 kB / 412.7 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001489/0.5376, allocations: 19.73 kB / 412.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000353/0.5379, allocations: 47.47 kB / 412.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009328/0.5389, allocations: 147.7 kB / 412.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008296/0.5397, allocations: 363.1 kB / 413.3 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002759/0.54, allocations: 56.8 kB / 413.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005589/0.5406, allocations: 147.6 kB / 413.5 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004027/0.541, allocations: 167.4 kB / 413.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.5412, allocations: 32 kB / 413.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001491/0.5414, allocations: 32 kB / 413.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.5415, allocations: 75.73 kB / 413.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002664/0.5418, allocations: 147.3 kB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006507/0.5425, allocations: 302.6 kB / 414.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.5425, allocations: 0 / 414.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5425, allocations: 0 / 414.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.5425, allocations: 0 / 414.2 MB, free: 13.32 MB / 334.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.00247/0.545, allocations: 0.7443 MB / 414.9 MB, free: 12.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.111e-05/0.5451, allocations: 8.031 kB / 415 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006582/0.5458, allocations: 52.62 kB / 415 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000674/0.5465, allocations: 276.6 kB / 415.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.163e-05/0.5466, allocations: 20.38 kB / 415.3 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.5467, allocations: 32.36 kB / 415.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001567/0.5483, allocations: 351.1 kB / 415.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.5483, allocations: 4 kB / 415.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.533e-05/0.5484, allocations: 11.98 kB / 415.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.5484, allocations: 4 kB / 415.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001634/0.5501, allocations: 243.8 kB / 415.9 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002121/0.5522, allocations: 0.7032 MB / 416.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00172/0.554, allocations: 360.9 kB / 417 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00108/0.5551, allocations: 205.6 kB / 417.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.557e-05/0.5552, allocations: 8 kB / 417.2 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001669/0.5568, allocations: 394.9 kB / 417.6 MB, free: 9.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 4.649e-06/0.5569, allocations: 0 / 417.6 MB, free: 9.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.003858/0.5607, allocations: 0.7502 MB / 418.3 MB, free: 8.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.993e-05/0.5609, allocations: 67.39 kB / 418.4 MB, free: 8.895 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003428/0.5612, allocations: 195.7 kB / 418.6 MB, free: 8.695 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.979e-05/0.5614, allocations: 41.7 kB / 418.6 MB, free: 8.648 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001689/0.5615, allocations: 144.9 kB / 418.8 MB, free: 8.504 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.5617, allocations: 102.5 kB / 418.9 MB, free: 8.402 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002193/0.562, allocations: 98.23 kB / 419 MB, free: 8.301 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.5621, allocations: 338.8 kB / 419.3 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006349/0.5628, allocations: 161 kB / 419.5 MB, free: 7.801 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007023/0.5635, allocations: 237.2 kB / 419.7 MB, free: 7.543 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001535/0.5651, allocations: 451.6 kB / 420.1 MB, free: 7.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.5651, allocations: 0 / 420.1 MB, free: 7.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002343/0.5674, allocations: 0.5607 MB / 420.7 MB, free: 6.473 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/0.5676, allocations: 93.09 kB / 420.8 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/0.5676, allocations: 4 kB / 420.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.934e-05/0.5677, allocations: 4 kB / 420.8 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007425/0.5684, allocations: 75.83 kB / 420.9 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.04e-05/0.5685, allocations: 7.984 kB / 420.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007047/0.5692, allocations: 67.64 kB / 420.9 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-05/0.5693, allocations: 20 kB / 421 MB, free: 6.188 MB / 334.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.000372/0.5697, allocations: 173.6 kB / 421.1 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.5698, allocations: 27.72 kB / 421.2 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001637/0.57, allocations: 34.98 kB / 421.2 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.57, allocations: 4 kB / 421.2 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/0.5701, allocations: 4 kB / 421.2 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.5701, allocations: 0 / 421.2 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000654/0.5708, allocations: 357 kB / 421.5 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.5708, allocations: 0 / 421.5 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005911/0.5714, allocations: 47.89 kB / 421.6 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.41e-05/0.5714, allocations: 4 kB / 421.6 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.193e-05/0.5715, allocations: 15.97 kB / 421.6 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.5715, allocations: 0 / 421.6 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.5716, allocations: 0 / 421.6 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004063/0.5756, allocations: 0.8602 MB / 422.5 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.5758, allocations: 100.8 kB / 422.6 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001234/0.576, allocations: 16.03 kB / 422.6 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006636/0.5766, allocations: 59.92 kB / 422.6 MB, free: 4.402 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002548/0.5769, allocations: 55.88 kB / 422.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.577, allocations: 27.97 kB / 422.7 MB, free: 4.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002192/0.5773, allocations: 132.2 kB / 422.9 MB, free: 4.191 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5773, allocations: 0 / 422.9 MB, free: 4.191 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000675/0.578, allocations: 79.89 kB / 422.9 MB, free: 4.113 MB / 334.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.0002833/0.5783, allocations: 135.8 kB / 423.1 MB, free: 3.977 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002329/0.5806, allocations: 0.6026 MB / 423.7 MB, free: 3.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.5807, allocations: 7.938 kB / 423.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001248/0.5819, allocations: 267.9 kB / 423.9 MB, free: 3.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006258/0.5826, allocations: 42.2 kB / 424 MB, free: 3.031 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.585, allocations: 0.5603 MB / 424.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005056/0.5855, allocations: 0.7566 MB / 425.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002456/0.5858, allocations: 31.42 kB / 425.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of SimCode: time 9.12e-07/0.5858, allocations: 0 / 425.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of Templates: time 0.01288/0.5987, allocations: 4.029 MB / 429.4 MB, free: 13.59 MB / 350.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)