Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.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.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009183/0.0009188, allocations: 96.08 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009983/0.0009982, allocations: 202.2 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002522/0.0002522, allocations: 8 kB / 307.7 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1393, allocations: 51.52 MB / 359.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002386/0.1418, allocations: 1.439 MB / 360.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.1431, allocations: 0.6429 MB / 361.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.1432, allocations: 3.938 kB / 361.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.1434, allocations: 7.922 kB / 361.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.764e-05/0.1434, allocations: 15.86 kB / 361.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002914/0.1437, allocations: 83.84 kB / 361.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002542/0.144, allocations: 151.5 kB / 361.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.1441, allocations: 29.42 kB / 361.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001549/0.1443, allocations: 51.83 kB / 361.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.1444, allocations: 67.67 kB / 361.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.071e-05/0.1444, allocations: 4 kB / 361.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.168e-05/0.1445, allocations: 16 kB / 361.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.131e-05/0.1445, allocations: 23.91 kB / 361.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.071e-05/0.1446, allocations: 89.41 kB / 361.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001899/0.1448, allocations: 123.8 kB / 362 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1448, allocations: 0 / 362 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1449, allocations: 4 kB / 362 MB, free: 10.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.1449, allocations: 0 / 362 MB, free: 10.55 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006867/0.1456, allocations: 462.5 kB / 362.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.1456, allocations: 12.03 kB / 362.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003115/0.1459, allocations: 44.75 kB / 362.5 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.1462, allocations: 209.5 kB / 362.7 MB, free: 9.742 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.762e-05/0.1463, allocations: 8.375 kB / 362.7 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.146e-05/0.1463, allocations: 20.11 kB / 362.7 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005695/0.1469, allocations: 181.5 kB / 362.9 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.1469, allocations: 0 / 362.9 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.167e-05/0.1469, allocations: 8 kB / 362.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.1469, allocations: 0 / 362.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003923/0.1473, allocations: 131.8 kB / 363.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007355/0.1481, allocations: 432.5 kB / 363.5 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007333/0.1488, allocations: 234.4 kB / 363.7 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003112/0.1491, allocations: 112.8 kB / 363.8 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.1492, allocations: 0 / 363.8 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005127/0.1497, allocations: 191.2 kB / 364 MB, free: 8.371 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.794e-06/0.1497, allocations: 0 / 364 MB, free: 8.371 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.001225/0.1509, allocations: 411.9 kB / 364.4 MB, free: 7.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.151, allocations: 63.39 kB / 364.5 MB, free: 7.891 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.1511, allocations: 147.7 kB / 364.6 MB, free: 7.738 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.1512, allocations: 37.7 kB / 364.6 MB, free: 7.695 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001983/0.1514, allocations: 108.4 kB / 364.8 MB, free: 7.586 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.978e-05/0.1514, allocations: 39.53 kB / 364.8 MB, free: 7.547 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.199e-05/0.1515, allocations: 29.7 kB / 364.8 MB, free: 7.512 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.1516, allocations: 322.8 kB / 365.1 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.1518, allocations: 51.97 kB / 365.2 MB, free: 7.137 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.1519, allocations: 121.6 kB / 365.3 MB, free: 6.988 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003013/0.1522, allocations: 180.4 kB / 365.5 MB, free: 6.781 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.1523, allocations: 0 / 365.5 MB, free: 6.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003846/0.1527, allocations: 217.4 kB / 365.7 MB, free: 6.562 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.1527, allocations: 8 kB / 365.7 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1527, allocations: 0 / 365.7 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.1527, allocations: 7.938 kB / 365.7 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.1529, allocations: 39.91 kB / 365.7 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.1529, allocations: 4 kB / 365.8 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.619e-05/0.153, allocations: 19.84 kB / 365.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.153, allocations: 11.94 kB / 365.8 MB, free: 6.473 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 (signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,$whenCondition2,$whenCondition1,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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0001602/0.1532, allocations: 152.1 kB / 365.9 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.164e-05/0.1533, allocations: 11.81 kB / 365.9 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008564/0.1541, allocations: 318.3 kB / 366.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.1542, allocations: 7.875 kB / 366.3 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1542, allocations: 3.938 kB / 366.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1542, allocations: 0 / 366.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.1553, allocations: 0.6077 MB / 366.9 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.1553, allocations: 3.938 kB / 366.9 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.1554, allocations: 19.98 kB / 366.9 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.1554, allocations: 4 kB / 366.9 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/0.1554, allocations: 8 kB / 366.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.1554, allocations: 0 / 366.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1554, allocations: 3.938 kB / 366.9 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.1568, allocations: 0.525 MB / 367.4 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.811e-05/0.1569, allocations: 84.95 kB / 367.5 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.71e-05/0.1569, allocations: 8 kB / 367.5 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002089/0.1572, allocations: 48.02 kB / 367.6 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.959e-05/0.1572, allocations: 11.98 kB / 367.6 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.1572, allocations: 8 kB / 367.6 MB, free: 4.555 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.956e-05/0.1573, allocations: 110.2 kB / 367.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1573, allocations: 0 / 367.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002761/0.1576, allocations: 35.84 kB / 367.7 MB, free: 4.414 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (sine.phi) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,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: 8 (signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.t_min,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.t_min) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.000153/0.1578, allocations: 111.6 kB / 367.8 MB, free: 4.293 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004875/0.1582, allocations: 183.8 kB / 368 MB, free: 4.113 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.1583, allocations: 0 / 368 MB, free: 4.113 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002779/0.1585, allocations: 108.5 kB / 368.1 MB, free: 4.008 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002469/0.1588, allocations: 11.94 kB / 368.1 MB, free: 3.996 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.1598, allocations: 410.1 kB / 368.5 MB, free: 3.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/0.1602, allocations: 0.7087 MB / 369.3 MB, free: 2.836 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.924e-05/0.1603, allocations: 17.08 kB / 369.3 MB, free: 2.812 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.536e-05/0.1603, allocations: 11.44 kB / 369.3 MB, free: 2.805 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1603, allocations: 4 kB / 369.3 MB, free: 2.801 MB / 302.1 MB Notification: Performance of Templates: time 0.003471/0.1638, allocations: 1.099 MB / 370.4 MB, free: 1.711 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)