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.001483/0.001483, allocations: 119.8 kB / 18.42 MB, free: 4.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001812/0.001812, allocations: 215.5 kB / 19.36 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 62.39 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1205, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003219/0.1238, allocations: 1.723 MB / 360.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.125, allocations: 0.66 MB / 361.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.084e-05/0.1251, allocations: 3.938 kB / 361.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001219/0.1253, allocations: 11.88 kB / 361.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.568e-05/0.1253, allocations: 23.72 kB / 361.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003065/0.1256, allocations: 91.77 kB / 361.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001973/0.1258, allocations: 147.6 kB / 361.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.126, allocations: 37.41 kB / 361.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001605/0.1262, allocations: 63.83 kB / 361.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001085/0.1263, allocations: 71.67 kB / 361.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.964e-05/0.1263, allocations: 16 kB / 361.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.24e-05/0.1264, allocations: 19.94 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.077e-05/0.1264, allocations: 39.89 kB / 361.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.132e-05/0.1265, allocations: 67.7 kB / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001811/0.1267, allocations: 135.5 kB / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1267, allocations: 0 / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1267, allocations: 0 / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.1267, allocations: 0 / 362 MB, free: 10.22 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.0007381/0.1275, allocations: 490.3 kB / 362.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.1275, allocations: 12.03 kB / 362.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002239/0.1277, allocations: 28.83 kB / 362.5 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002775/0.128, allocations: 219.6 kB / 362.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.095e-05/0.1281, allocations: 12.38 kB / 362.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.866e-05/0.1281, allocations: 24.06 kB / 362.8 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003928/0.1285, allocations: 165.5 kB / 362.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.1285, allocations: 3.984 kB / 362.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.1285, allocations: 0 / 362.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.1286, allocations: 0 / 362.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003076/0.1289, allocations: 99.91 kB / 363 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006245/0.1295, allocations: 432.3 kB / 363.5 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005049/0.13, allocations: 186.4 kB / 363.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002429/0.1303, allocations: 100.7 kB / 363.7 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.1303, allocations: 256 / 363.7 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003661/0.1307, allocations: 171.2 kB / 363.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.512e-06/0.1307, allocations: 0 / 363.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.000903/0.1316, allocations: 348.7 kB / 364.2 MB, free: 7.797 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/0.1317, allocations: 59.41 kB / 364.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/0.1318, allocations: 149.6 kB / 364.4 MB, free: 7.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.1318, allocations: 33.7 kB / 364.5 MB, free: 7.531 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.778e-05/0.1319, allocations: 108.5 kB / 364.6 MB, free: 7.422 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.614e-05/0.132, allocations: 43.45 kB / 364.6 MB, free: 7.379 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.367e-05/0.132, allocations: 41.7 kB / 364.7 MB, free: 7.332 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.1321, allocations: 322.8 kB / 365 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/0.1323, allocations: 51.91 kB / 365 MB, free: 6.957 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.1324, allocations: 117.6 kB / 365.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002617/0.1327, allocations: 172.4 kB / 365.3 MB, free: 6.613 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1327, allocations: 0 / 365.3 MB, free: 6.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003345/0.133, allocations: 209.2 kB / 365.5 MB, free: 6.402 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.1331, allocations: 7.938 kB / 365.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.1331, allocations: 4 kB / 365.5 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.1331, allocations: 7.938 kB / 365.5 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.1333, allocations: 35.97 kB / 365.6 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.1333, allocations: 7.938 kB / 365.6 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.113e-05/0.1334, allocations: 20.12 kB / 365.6 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.1334, allocations: 12 kB / 365.6 MB, free: 6.309 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.0001067/0.1335, allocations: 136.1 kB / 365.7 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.24e-05/0.1336, allocations: 15.91 kB / 365.8 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006331/0.1342, allocations: 270.3 kB / 366 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1342, allocations: 7.938 kB / 366 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.237e-06/0.1342, allocations: 0 / 366 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1342, allocations: 0 / 366 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008737/0.1351, allocations: 0.5724 MB / 366.6 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.1351, allocations: 7.875 kB / 366.6 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.1352, allocations: 15.98 kB / 366.6 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1352, allocations: 0 / 366.6 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.1353, allocations: 0 / 366.6 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.1353, allocations: 7.984 kB / 366.6 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.1353, allocations: 4 kB / 366.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009118/0.1362, allocations: 475 kB / 367.1 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.782e-05/0.1363, allocations: 88.98 kB / 367.2 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.687e-05/0.1363, allocations: 8 kB / 367.2 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.1365, allocations: 31.95 kB / 367.2 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.721e-05/0.1365, allocations: 7.984 kB / 367.2 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-05/0.1366, allocations: 8 kB / 367.2 MB, free: 4.566 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.582e-05/0.1366, allocations: 110.8 kB / 367.4 MB, free: 4.461 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1366, allocations: 4.062 kB / 367.4 MB, free: 4.457 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002719/0.1369, allocations: 32 kB / 367.4 MB, free: 4.426 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.0001337/0.1371, allocations: 115.5 kB / 367.5 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004041/0.1375, allocations: 167.1 kB / 367.7 MB, free: 4.141 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1375, allocations: 4.188 kB / 367.7 MB, free: 4.137 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002365/0.1377, allocations: 99.84 kB / 367.8 MB, free: 4.039 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002353/0.138, allocations: 15.06 kB / 367.8 MB, free: 4.027 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007118/0.1387, allocations: 324.7 kB / 368.1 MB, free: 3.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002787/0.139, allocations: 0.7084 MB / 368.8 MB, free: 2.945 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.785e-05/0.139, allocations: 17.08 kB / 368.8 MB, free: 2.926 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.186e-05/0.1391, allocations: 27.36 kB / 368.9 MB, free: 2.902 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1391, allocations: 0 / 368.9 MB, free: 2.902 MB / 302.1 MB Notification: Performance of Templates: time 0.003671/0.1428, allocations: 1.227 MB / 370.1 MB, free: 1.68 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 -s cvode -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)