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.0017/0.0017, allocations: 109.4 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002177/0.002177, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.498/2.498, allocations: 227.4 MB / 247.1 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002244/0.002244, allocations: 64.2 kB / 307.1 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1736/0.1759, allocations: 50.53 MB / 357.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.006511/0.1825, allocations: 2.085 MB / 359.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00245/0.185, allocations: 0.7363 MB / 360.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002439/0.1853, allocations: 3.938 kB / 360.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.1855, allocations: 19.84 kB / 360.5 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003249/0.1858, allocations: 35.7 kB / 360.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007812/0.1866, allocations: 131.8 kB / 360.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008039/0.1875, allocations: 339.2 kB / 361 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/0.1877, allocations: 68.75 kB / 361 MB, free: 11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004391/0.1882, allocations: 151.5 kB / 361.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003087/0.1885, allocations: 175.3 kB / 361.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.133e-05/0.1886, allocations: 32 kB / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001243/0.1888, allocations: 32 kB / 361.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.1889, allocations: 75.73 kB / 361.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002024/0.1891, allocations: 139.3 kB / 361.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004065/0.1895, allocations: 199.9 kB / 361.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1896, allocations: 0 / 361.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.736e-06/0.1896, allocations: 0 / 361.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.1896, allocations: 0 / 361.8 MB, free: 10.21 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.002551/0.1922, allocations: 0.7429 MB / 362.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/0.1922, allocations: 12.03 kB / 362.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006435/0.1929, allocations: 60.61 kB / 362.6 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004794/0.1934, allocations: 260.7 kB / 362.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.254e-05/0.1935, allocations: 24.36 kB / 362.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.1936, allocations: 32.28 kB / 362.9 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.1953, allocations: 355.1 kB / 363.3 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.1953, allocations: 3.938 kB / 363.3 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.956e-05/0.1954, allocations: 11.97 kB / 363.3 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/0.1954, allocations: 4 kB / 363.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001561/0.197, allocations: 247.8 kB / 363.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.1989, allocations: 0.707 MB / 364.3 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/0.2007, allocations: 364.9 kB / 364.6 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001155/0.2019, allocations: 205.8 kB / 364.8 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.385e-05/0.2019, allocations: 7.984 kB / 364.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001659/0.2036, allocations: 390.5 kB / 365.2 MB, free: 6.613 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 5.591e-06/0.2036, allocations: 4 kB / 365.2 MB, free: 6.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.003733/0.2074, allocations: 0.754 MB / 366 MB, free: 5.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.277e-05/0.2075, allocations: 67.39 kB / 366 MB, free: 5.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003213/0.2078, allocations: 191.8 kB / 366.2 MB, free: 5.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.292e-05/0.2079, allocations: 45.69 kB / 366.3 MB, free: 5.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.2081, allocations: 132.9 kB / 366.4 MB, free: 5.387 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.2083, allocations: 118.6 kB / 366.5 MB, free: 5.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002549/0.2086, allocations: 90.23 kB / 366.6 MB, free: 5.176 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002054/0.2088, allocations: 342.8 kB / 366.9 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008313/0.2097, allocations: 153 kB / 367.1 MB, free: 4.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007766/0.2104, allocations: 237.2 kB / 367.3 MB, free: 4.426 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001683/0.2121, allocations: 441.3 kB / 367.7 MB, free: 3.953 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.2122, allocations: 4 kB / 367.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002305/0.2145, allocations: 0.5651 MB / 368.3 MB, free: 3.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000117/0.2146, allocations: 101.2 kB / 368.4 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.2147, allocations: 0 / 368.4 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.918e-05/0.2147, allocations: 4 kB / 368.4 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007438/0.2155, allocations: 83.81 kB / 368.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.114e-05/0.2155, allocations: 4 kB / 368.5 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006809/0.2162, allocations: 63.64 kB / 368.6 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.275e-05/0.2163, allocations: 16 kB / 368.6 MB, free: 3.074 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.0003794/0.2167, allocations: 181.6 kB / 368.8 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.2168, allocations: 31.62 kB / 368.8 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001381/0.217, allocations: 34.98 kB / 368.8 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.217, allocations: 4 kB / 368.8 MB, free: 2.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.217, allocations: 0 / 368.8 MB, free: 2.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.2171, allocations: 3.984 kB / 368.8 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006212/0.2177, allocations: 349.2 kB / 369.2 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.2177, allocations: 0 / 369.2 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005719/0.2183, allocations: 47.89 kB / 369.2 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.927e-06/0.2183, allocations: 4 kB / 369.2 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.837e-05/0.2184, allocations: 11.98 kB / 369.2 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.888e-06/0.2185, allocations: 4 kB / 369.2 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.2185, allocations: 3.938 kB / 369.2 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004092/0.2226, allocations: 0.8564 MB / 370.1 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.2227, allocations: 104.7 kB / 370.2 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001479/0.2229, allocations: 16 kB / 370.2 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006923/0.2236, allocations: 55.92 kB / 370.3 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002315/0.2239, allocations: 47.94 kB / 370.3 MB, free: 1.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001018/0.224, allocations: 27.97 kB / 370.3 MB, free: 1.215 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000214/0.2242, allocations: 140.2 kB / 370.5 MB, free: 1.078 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.2242, allocations: 0 / 370.5 MB, free: 1.078 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006732/0.2249, allocations: 80 kB / 370.6 MB, free: 1 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.0002868/0.2252, allocations: 127.7 kB / 370.7 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002643/0.2279, allocations: 0.6189 MB / 371.3 MB, free: 212 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.2279, allocations: 0 / 371.3 MB, free: 212 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2952/0.5231, allocations: 265.6 kB / 371.6 MB, free: 20.76 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007186/0.5239, allocations: 40.45 kB / 371.6 MB, free: 20.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002387/0.5263, allocations: 0.6582 MB / 372.3 MB, free: 20.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.5267, allocations: 0.7614 MB / 373 MB, free: 19.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002475/0.527, allocations: 32.33 kB / 373.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of SimCode: time 1.302e-06/0.527, allocations: 0 / 373.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of Templates: time 0.01474/0.5418, allocations: 3.951 MB / 377 MB, free: 19.48 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)