Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001582/0.001582, 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.001691/0.001691, 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 4.1.0-beta.om/package.mo): time 1.481/1.481, allocations: 227.7 MB / 247.4 MB, free: 10.51 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001968, allocations: 65.17 kB / 307.4 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1058, allocations: 50.54 MB / 357.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003304/0.1092, allocations: 2.074 MB / 360 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001398/0.1106, allocations: 0.7402 MB / 360.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.1108, allocations: 7.938 kB / 360.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.155e-05/0.1108, allocations: 11.86 kB / 360.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.111, allocations: 39.64 kB / 360.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000404/0.1114, allocations: 123.8 kB / 360.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004012/0.1118, allocations: 351.1 kB / 361.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.112, allocations: 60.77 kB / 361.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002736/0.1123, allocations: 159.5 kB / 361.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001923/0.1125, allocations: 159.4 kB / 361.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.5e-05/0.1125, allocations: 32 kB / 361.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.992e-05/0.1126, allocations: 36 kB / 361.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.043e-05/0.1127, allocations: 79.72 kB / 361.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.1129, allocations: 139.4 kB / 361.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002498/0.1131, allocations: 203.8 kB / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.1131, allocations: 0 / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1131, allocations: 0 / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1131, allocations: 0 / 362.1 MB, free: 10.05 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001545/0.1147, allocations: 0.7429 MB / 362.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.1147, allocations: 8.031 kB / 362.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003414/0.1151, allocations: 56.62 kB / 362.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.1154, allocations: 264.7 kB / 363.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.1154, allocations: 20.38 kB / 363.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.208e-05/0.1155, allocations: 36.27 kB / 363.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008369/0.1164, allocations: 355.1 kB / 363.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.1164, allocations: 0 / 363.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.706e-05/0.1164, allocations: 8 kB / 363.6 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.1165, allocations: 7.984 kB / 363.6 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007721/0.1172, allocations: 247.7 kB / 363.8 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.1184, allocations: 0.707 MB / 364.5 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000893/0.1193, allocations: 360.9 kB / 364.9 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005359/0.1198, allocations: 209.8 kB / 365.1 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.243e-05/0.1199, allocations: 3.984 kB / 365.1 MB, free: 6.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009144/0.1208, allocations: 394.5 kB / 365.5 MB, free: 6.465 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.554e-06/0.1208, allocations: 0 / 365.5 MB, free: 6.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.001935/0.1227, allocations: 0.7541 MB / 366.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.529e-05/0.1228, allocations: 71.39 kB / 366.3 MB, free: 5.621 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001967/0.123, allocations: 195.7 kB / 366.5 MB, free: 5.422 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.063e-05/0.1231, allocations: 41.7 kB / 366.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.1232, allocations: 136.9 kB / 366.7 MB, free: 5.234 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.1233, allocations: 106.6 kB / 366.8 MB, free: 5.129 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.1234, allocations: 94.23 kB / 366.9 MB, free: 5.031 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.1236, allocations: 346.8 kB / 367.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004232/0.124, allocations: 157 kB / 367.4 MB, free: 4.527 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004766/0.1245, allocations: 241.2 kB / 367.6 MB, free: 4.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008675/0.1254, allocations: 437 kB / 368 MB, free: 3.801 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.1254, allocations: 4 kB / 368 MB, free: 3.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001172/0.1266, allocations: 0.5699 MB / 368.6 MB, free: 3.203 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.708e-05/0.1267, allocations: 93.09 kB / 368.7 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.1267, allocations: 7.984 kB / 368.7 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.1267, allocations: 4.219 kB / 368.7 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003636/0.1271, allocations: 75.89 kB / 368.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/0.1271, allocations: 11.92 kB / 368.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003418/0.1275, allocations: 59.64 kB / 368.9 MB, free: 2.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.275e-05/0.1275, allocations: 24 kB / 368.9 MB, free: 2.914 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 46 (signalExtrema3.t_min,$PRE.signalExtrema3.t_min,signalExtrema3.t_max,$PRE.signalExtrema3.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,$whenCondition5,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,sawTooth.count,$PRE.sawTooth.count,sawTooth.T_start,$PRE.sawTooth.T_start,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,signalExtrema3.y_max,$PRE.signalExtrema3.y_max,signalExtrema3.y_min,$PRE.signalExtrema3.y_min,sawTooth1.count,$PRE.sawTooth1.count,sawTooth1.T_start,$PRE.sawTooth1.T_start,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 3 * 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.000215/0.1277, allocations: 173.6 kB / 369 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.884e-05/0.1278, allocations: 27.62 kB / 369.1 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.702e-05/0.1279, allocations: 38.98 kB / 369.1 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.1279, allocations: 4 kB / 369.1 MB, free: 2.668 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.1279, allocations: 0 / 369.1 MB, free: 2.668 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.1279, allocations: 3.938 kB / 369.1 MB, free: 2.664 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003747/0.1283, allocations: 345.2 kB / 369.5 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1283, allocations: 0 / 369.5 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002832/0.1286, allocations: 47.95 kB / 369.5 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.1286, allocations: 4 kB / 369.5 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.525e-05/0.1287, allocations: 19.97 kB / 369.5 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.1287, allocations: 0 / 369.5 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1287, allocations: 3.938 kB / 369.5 MB, free: 2.203 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001974/0.1307, allocations: 0.8564 MB / 370.4 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.775e-05/0.1308, allocations: 100.7 kB / 370.5 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.621e-05/0.1309, allocations: 24.03 kB / 370.5 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003527/0.1312, allocations: 55.92 kB / 370.6 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.1314, allocations: 47.94 kB / 370.6 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-05/0.1314, allocations: 27.98 kB / 370.6 MB, free: 1.059 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000119/0.1316, allocations: 137.5 kB / 370.8 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1316, allocations: 0 / 370.8 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003403/0.1319, allocations: 79.98 kB / 370.8 MB, free: 0.8477 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (signalExtrema3.x,signalExtrema1.x,signalExtrema2.x) * Number of discrete variables: 28 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,sawTooth1.T_start,sawTooth1.count,signalExtrema3.y_min,signalExtrema3.y_max,signalExtrema3.t_min,signalExtrema3.t_max,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,sawTooth.T_start,sawTooth.count,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: 18 (sawTooth.count,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.y_min,signalExtrema1.t_min,signalExtrema1.u,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.y_min,signalExtrema2.t_min,signalExtrema2.u,pulse.count,sawTooth1.count,signalExtrema3.y_max,signalExtrema3.t_max,signalExtrema3.y_min,signalExtrema3.t_min,signalExtrema3.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * 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.0001781/0.1321, allocations: 129.4 kB / 371 MB, free: 0.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001342/0.1334, allocations: 0.6227 MB / 371.6 MB, free: 48 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1335, allocations: 0 / 371.6 MB, free: 48 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1437/0.2772, allocations: 261.8 kB / 371.9 MB, free: 20.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003994/0.2776, allocations: 38.33 kB / 371.9 MB, free: 20.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001454/0.2791, allocations: 0.6606 MB / 372.5 MB, free: 20.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001866/0.2793, allocations: 0.7589 MB / 373.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.2794, allocations: 33.16 kB / 373.3 MB, free: 19.65 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2794, allocations: 0 / 373.3 MB, free: 19.65 MB / 302.1 MB Notification: Performance of Templates: time 0.007742/0.2871, allocations: 3.95 MB / 377.3 MB, free: 19.43 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1)