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.001158/0.001158, allocations: 104.2 kB / 17.2 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001174/0.001174, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246.3 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.001331, allocations: 62.7 kB / 306.2 MB, free: 1.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1164, allocations: 50.54 MB / 356.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003466/0.1199, allocations: 1.781 MB / 358.6 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001386/0.1213, allocations: 0.6585 MB / 359.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.742e-05/0.1214, allocations: 7.938 kB / 359.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001459/0.1216, allocations: 7.922 kB / 359.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.362e-05/0.1217, allocations: 11.86 kB / 359.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003037/0.122, allocations: 79.86 kB / 359.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001875/0.1222, allocations: 155.5 kB / 359.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.1223, allocations: 25.44 kB / 359.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001687/0.1225, allocations: 63.81 kB / 359.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.733e-05/0.1226, allocations: 55.75 kB / 359.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.1226, allocations: 8 kB / 359.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.1228, allocations: 23.98 kB / 359.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.671e-05/0.1228, allocations: 27.91 kB / 359.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.037e-05/0.1229, allocations: 67.64 kB / 359.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002057/0.1231, allocations: 127.8 kB / 359.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.793e-05/0.1231, allocations: 0 / 359.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1232, allocations: 0 / 359.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1232, allocations: 0 / 359.9 MB, free: 11.41 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.0007642/0.1239, allocations: 494.3 kB / 360.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.124, allocations: 12.03 kB / 360.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002508/0.1242, allocations: 36.75 kB / 360.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002269/0.1245, allocations: 216.2 kB / 360.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.182e-05/0.1245, allocations: 8.375 kB / 360.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.948e-05/0.1246, allocations: 12.12 kB / 360.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004526/0.125, allocations: 165.5 kB / 360.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1251, allocations: 4 kB / 360.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.1251, allocations: 0 / 360.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.1251, allocations: 4 kB / 360.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003338/0.1254, allocations: 99.84 kB / 360.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007082/0.1261, allocations: 432.4 kB / 361.3 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005619/0.1267, allocations: 194.4 kB / 361.5 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002755/0.127, allocations: 88.78 kB / 361.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.127, allocations: 7.938 kB / 361.6 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004573/0.1275, allocations: 167.3 kB / 361.8 MB, free: 9.332 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.532e-06/0.1275, allocations: 0 / 361.8 MB, free: 9.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.001081/0.1286, allocations: 347.9 kB / 362.1 MB, free: 8.988 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.066e-05/0.1287, allocations: 63.39 kB / 362.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.1288, allocations: 153.6 kB / 362.3 MB, free: 8.754 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.1289, allocations: 37.7 kB / 362.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.816e-05/0.129, allocations: 104.5 kB / 362.5 MB, free: 8.605 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.81e-05/0.129, allocations: 39.45 kB / 362.5 MB, free: 8.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.486e-05/0.1291, allocations: 45.7 kB / 362.5 MB, free: 8.516 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.1292, allocations: 322.8 kB / 362.9 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.1294, allocations: 47.97 kB / 362.9 MB, free: 8.145 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.1295, allocations: 113.6 kB / 363 MB, free: 8.004 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002823/0.1298, allocations: 168.4 kB / 363.2 MB, free: 7.809 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.1298, allocations: 0 / 363.2 MB, free: 7.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003767/0.1302, allocations: 213.1 kB / 363.4 MB, free: 7.594 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.1302, allocations: 8 kB / 363.4 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1303, allocations: 0 / 363.4 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.1303, allocations: 7.938 kB / 363.4 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001851/0.1305, allocations: 39.91 kB / 363.4 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.443e-05/0.1305, allocations: 4 kB / 363.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.922e-05/0.1306, allocations: 28.12 kB / 363.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.1306, allocations: 4 kB / 363.5 MB, free: 7.504 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.0001392/0.1308, allocations: 144.1 kB / 363.6 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.844e-05/0.1308, allocations: 7.906 kB / 363.6 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007229/0.1315, allocations: 278.3 kB / 363.9 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.1316, allocations: 3.938 kB / 363.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.1316, allocations: 7.875 kB / 363.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.1316, allocations: 0 / 363.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009974/0.1326, allocations: 0.5748 MB / 364.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.1326, allocations: 3.938 kB / 364.5 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.1327, allocations: 15.98 kB / 364.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.584e-06/0.1327, allocations: 0 / 364.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.234e-05/0.1327, allocations: 7.984 kB / 364.5 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.1328, allocations: 0 / 364.5 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.1328, allocations: 3.938 kB / 364.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.1338, allocations: 475 kB / 365 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.37e-05/0.1338, allocations: 88.98 kB / 365.1 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.1339, allocations: 8 kB / 365.1 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.1341, allocations: 31.95 kB / 365.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.457e-05/0.1341, allocations: 7.984 kB / 365.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.1342, allocations: 4 kB / 365.1 MB, free: 5.758 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.004e-05/0.1343, allocations: 114.7 kB / 365.2 MB, free: 5.648 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1343, allocations: 0 / 365.2 MB, free: 5.648 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000304/0.1346, allocations: 35.94 kB / 365.3 MB, free: 5.613 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.0001451/0.1347, allocations: 111.6 kB / 365.4 MB, free: 5.492 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004789/0.1352, allocations: 164.1 kB / 365.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1352, allocations: 0 / 365.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000247/0.1355, allocations: 91.92 kB / 365.6 MB, free: 5.242 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.1358, allocations: 17.42 kB / 365.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008404/0.1366, allocations: 374.7 kB / 366 MB, free: 4.832 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.1369, allocations: 0.7126 MB / 366.7 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.612e-05/0.137, allocations: 9.078 kB / 366.7 MB, free: 4.082 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.004e-05/0.137, allocations: 19.44 kB / 366.7 MB, free: 4.066 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.137, allocations: 0 / 366.7 MB, free: 4.066 MB / 302.1 MB Notification: Performance of Templates: time 0.003722/0.1408, allocations: 1.119 MB / 367.9 MB, free: 2.953 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)