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.001337/0.001337, allocations: 104.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001519/0.001519, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 67.52 kB / 307 MB, free: 0.5938 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1205, allocations: 50.54 MB / 357.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.00353/0.124, allocations: 1.729 MB / 359.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.1255, allocations: 0.6678 MB / 359.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.1256, allocations: 3.938 kB / 359.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001497/0.1258, allocations: 11.86 kB / 359.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.999e-05/0.1259, allocations: 23.78 kB / 360 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003895/0.1263, allocations: 87.77 kB / 360 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.1265, allocations: 143.6 kB / 360.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.1267, allocations: 37.41 kB / 360.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000201/0.1269, allocations: 67.78 kB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001351/0.127, allocations: 67.73 kB / 360.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.043e-05/0.1271, allocations: 12 kB / 360.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.477e-05/0.1271, allocations: 19.98 kB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.233e-05/0.1272, allocations: 35.91 kB / 360.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.307e-05/0.1273, allocations: 75.62 kB / 360.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002595/0.1276, allocations: 135.8 kB / 360.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.1276, allocations: 8 kB / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1276, allocations: 0 / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.1276, allocations: 0 / 360.6 MB, free: 10.92 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.0008003/0.1284, allocations: 486.3 kB / 361.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.1285, allocations: 8.031 kB / 361.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002463/0.1287, allocations: 28.83 kB / 361.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002543/0.129, allocations: 219.6 kB / 361.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.928e-05/0.129, allocations: 16.31 kB / 361.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.873e-05/0.1291, allocations: 16.12 kB / 361.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004523/0.1295, allocations: 164.8 kB / 361.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.1295, allocations: 0 / 361.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.336e-05/0.1296, allocations: 7.984 kB / 361.6 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.1296, allocations: 8 kB / 361.6 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003729/0.13, allocations: 95.91 kB / 361.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007226/0.1307, allocations: 428.3 kB / 362.1 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005907/0.1313, allocations: 194.4 kB / 362.3 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002842/0.1316, allocations: 88.78 kB / 362.4 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.1316, allocations: 4 kB / 362.4 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004986/0.1321, allocations: 167.3 kB / 362.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.1321, allocations: 0 / 362.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.001045/0.1332, allocations: 345.4 kB / 362.9 MB, free: 8.512 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.055e-05/0.1333, allocations: 55.41 kB / 362.9 MB, free: 8.445 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.1334, allocations: 157.6 kB / 363.1 MB, free: 8.281 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.1334, allocations: 29.7 kB / 363.1 MB, free: 8.246 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.271e-05/0.1335, allocations: 108.5 kB / 363.2 MB, free: 8.137 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.856e-05/0.1336, allocations: 43.44 kB / 363.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.034e-05/0.1337, allocations: 49.64 kB / 363.3 MB, free: 8.039 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1338, allocations: 326.8 kB / 363.6 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001357/0.134, allocations: 43.97 kB / 363.7 MB, free: 7.668 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.1341, allocations: 121.6 kB / 363.8 MB, free: 7.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002937/0.1344, allocations: 168.4 kB / 363.9 MB, free: 7.324 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1344, allocations: 0 / 363.9 MB, free: 7.324 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003844/0.1348, allocations: 201.3 kB / 364.1 MB, free: 7.121 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.1349, allocations: 8 kB / 364.1 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.1349, allocations: 0 / 364.1 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.1349, allocations: 7.938 kB / 364.2 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001822/0.1351, allocations: 47.84 kB / 364.2 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.1351, allocations: 4 kB / 364.2 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.669e-05/0.1352, allocations: 11.84 kB / 364.2 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.1352, allocations: 12 kB / 364.2 MB, free: 7.031 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.0001361/0.1354, allocations: 144.3 kB / 364.4 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.695e-05/0.1354, allocations: 7.906 kB / 364.4 MB, free: 6.871 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007767/0.1362, allocations: 285.2 kB / 364.7 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.1362, allocations: 3.938 kB / 364.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.1362, allocations: 4 kB / 364.7 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.1362, allocations: 0 / 364.7 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.1373, allocations: 0.5724 MB / 365.2 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.1373, allocations: 3.938 kB / 365.2 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001075/0.1374, allocations: 19.92 kB / 365.3 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.1374, allocations: 0 / 365.3 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.203e-05/0.1374, allocations: 8 kB / 365.3 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.1374, allocations: 0 / 365.3 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.1374, allocations: 3.984 kB / 365.3 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.1385, allocations: 471 kB / 365.7 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.949e-05/0.1386, allocations: 88.98 kB / 365.8 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.995e-05/0.1386, allocations: 8 kB / 365.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/0.1388, allocations: 27.95 kB / 365.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.57e-05/0.1389, allocations: 15.98 kB / 365.9 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.1389, allocations: 4 kB / 365.9 MB, free: 5.281 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.836e-05/0.139, allocations: 110.8 kB / 366 MB, free: 5.176 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.139, allocations: 3.938 kB / 366 MB, free: 5.172 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002839/0.1393, allocations: 36 kB / 366 MB, free: 5.137 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.0001347/0.1394, allocations: 103.7 kB / 366.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005019/0.14, allocations: 164.5 kB / 366.3 MB, free: 4.863 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.14, allocations: 4 kB / 366.3 MB, free: 4.859 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002722/0.1402, allocations: 95.92 kB / 366.4 MB, free: 4.766 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002511/0.1405, allocations: 19.22 kB / 366.4 MB, free: 4.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008549/0.1414, allocations: 340.7 kB / 366.7 MB, free: 4.387 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000386/0.1418, allocations: 0.7084 MB / 367.4 MB, free: 3.652 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.653e-05/0.1418, allocations: 17.02 kB / 367.5 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.05e-05/0.1419, allocations: 19.38 kB / 367.5 MB, free: 3.617 MB / 302.1 MB Notification: Performance of SimCode: time 1.91e-07/0.1419, allocations: 0 / 367.5 MB, free: 3.617 MB / 302.1 MB Notification: Performance of Templates: time 0.00418/0.1461, allocations: 1.235 MB / 368.7 MB, free: 2.387 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)