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.001549/0.001549, 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.001701/0.001701, 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 1.575/1.575, allocations: 227.4 MB / 247.1 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001841/0.001841, allocations: 64.55 kB / 307.1 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1182, allocations: 50.53 MB / 357.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003192/0.1214, allocations: 1.778 MB / 359.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.1227, allocations: 0.6623 MB / 360.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.437e-05/0.1228, allocations: 4 kB / 360.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.123, allocations: 15.86 kB / 360.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.038e-05/0.123, allocations: 15.86 kB / 360.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003194/0.1234, allocations: 71.86 kB / 360.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001982/0.1236, allocations: 155.6 kB / 360.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.1237, allocations: 29.44 kB / 360.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001681/0.1239, allocations: 75.75 kB / 360.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.124, allocations: 63.69 kB / 360.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.124, allocations: 16 kB / 360.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.629e-05/0.1241, allocations: 19.98 kB / 360.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.81e-05/0.1242, allocations: 31.91 kB / 360.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.942e-05/0.1242, allocations: 67.7 kB / 360.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001717/0.1244, allocations: 100 kB / 360.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.1244, allocations: 0 / 360.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1244, allocations: 0 / 360.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.1245, allocations: 4 kB / 360.8 MB, free: 11.29 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.0007666/0.1252, allocations: 496.8 kB / 361.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.1253, allocations: 12.03 kB / 361.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002345/0.1255, allocations: 28.77 kB / 361.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002423/0.1258, allocations: 218.9 kB / 361.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.128e-05/0.1258, allocations: 12.31 kB / 361.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.094e-05/0.1259, allocations: 12.12 kB / 361.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004486/0.1263, allocations: 168.7 kB / 361.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.1263, allocations: 0 / 361.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.1264, allocations: 0 / 361.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.1264, allocations: 4 kB / 361.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003372/0.1267, allocations: 99.91 kB / 361.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007355/0.1275, allocations: 428.3 kB / 362.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005616/0.128, allocations: 194.4 kB / 362.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000299/0.1283, allocations: 92.78 kB / 362.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.1284, allocations: 4 kB / 362.5 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005068/0.1289, allocations: 167.2 kB / 362.7 MB, free: 9.219 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 4.037e-06/0.1289, allocations: 4 kB / 362.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009939/0.1299, allocations: 343.7 kB / 363 MB, free: 8.875 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/0.13, allocations: 59.41 kB / 363.1 MB, free: 8.805 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.1301, allocations: 153.6 kB / 363.2 MB, free: 8.645 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.1302, allocations: 37.7 kB / 363.2 MB, free: 8.602 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.102e-05/0.1302, allocations: 96.52 kB / 363.3 MB, free: 8.504 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.07e-05/0.1303, allocations: 43.44 kB / 363.4 MB, free: 8.461 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.786e-05/0.1304, allocations: 49.69 kB / 363.4 MB, free: 8.406 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1305, allocations: 322.8 kB / 363.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.1307, allocations: 51.97 kB / 363.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001737/0.1309, allocations: 109.6 kB / 363.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000297/0.1312, allocations: 184.4 kB / 364.1 MB, free: 7.684 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1312, allocations: 0 / 364.1 MB, free: 7.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003744/0.1316, allocations: 201.2 kB / 364.3 MB, free: 7.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.1316, allocations: 8 kB / 364.3 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.1316, allocations: 8.281 kB / 364.3 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.1316, allocations: 3.938 kB / 364.3 MB, free: 7.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.1318, allocations: 35.92 kB / 364.3 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.1318, allocations: 7.938 kB / 364.3 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.944e-05/0.1319, allocations: 23.83 kB / 364.4 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.1319, allocations: 4 kB / 364.4 MB, free: 7.391 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.000138/0.1321, allocations: 140.2 kB / 364.5 MB, free: 7.242 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.898e-05/0.1321, allocations: 15.83 kB / 364.5 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007232/0.1329, allocations: 274.3 kB / 364.8 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.1329, allocations: 3.938 kB / 364.8 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1329, allocations: 3.938 kB / 364.8 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1329, allocations: 0 / 364.8 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009878/0.1339, allocations: 0.575 MB / 365.4 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.1339, allocations: 7.875 kB / 365.4 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/0.134, allocations: 19.98 kB / 365.4 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.1341, allocations: 0 / 365.4 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.1341, allocations: 7.984 kB / 365.4 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1341, allocations: 0 / 365.4 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.1341, allocations: 0 / 365.4 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/0.1351, allocations: 471 kB / 365.9 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.853e-05/0.1352, allocations: 96.91 kB / 366 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.113e-05/0.1352, allocations: 8 kB / 366 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001925/0.1354, allocations: 32.03 kB / 366 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.062e-05/0.1355, allocations: 7.984 kB / 366 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.929e-05/0.1355, allocations: 7.984 kB / 366 MB, free: 5.637 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.27e-05/0.1356, allocations: 114.6 kB / 366.1 MB, free: 5.527 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1356, allocations: 0 / 366.1 MB, free: 5.527 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002908/0.1359, allocations: 31.94 kB / 366.2 MB, free: 5.496 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.0001414/0.1361, allocations: 103.7 kB / 366.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004919/0.1366, allocations: 176 kB / 366.4 MB, free: 5.211 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1366, allocations: 0 / 366.4 MB, free: 5.211 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002709/0.1368, allocations: 96.48 kB / 366.5 MB, free: 5.117 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.1371, allocations: 15.94 kB / 366.5 MB, free: 5.102 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008457/0.138, allocations: 397.2 kB / 366.9 MB, free: 4.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003542/0.1383, allocations: 0.7162 MB / 367.6 MB, free: 3.938 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.29e-05/0.1384, allocations: 19.44 kB / 367.7 MB, free: 3.918 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1384, allocations: 0 / 367.7 MB, free: 3.918 MB / 302.1 MB Notification: Performance of Templates: time 0.003524/0.1419, allocations: 1.627 MB / 369.3 MB, free: 2.289 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)