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.001335/0.001335, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001357/0.001357, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 60.97 kB / 307.6 MB, free: 0.6523 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08723/0.08854, allocations: 50.53 MB / 358.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.00304/0.09162, allocations: 1.722 MB / 359.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.09287, allocations: 0.6717 MB / 360.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.093, allocations: 0 / 360.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.09316, allocations: 19.8 kB / 360.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.548e-05/0.09323, allocations: 15.8 kB / 360.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003409/0.09358, allocations: 87.78 kB / 360.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001986/0.09379, allocations: 155.5 kB / 360.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.09392, allocations: 33.42 kB / 360.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000171/0.0941, allocations: 59.83 kB / 360.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.09421, allocations: 71.67 kB / 361 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.762e-05/0.09425, allocations: 16 kB / 361 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.129e-05/0.09434, allocations: 20 kB / 361 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.777e-05/0.09438, allocations: 35.89 kB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.068e-05/0.09446, allocations: 67.7 kB / 361.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001996/0.09466, allocations: 139.8 kB / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.09468, allocations: 0 / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.09469, allocations: 0 / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.0947, allocations: 0 / 361.2 MB, free: 11.01 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.0006773/0.09538, allocations: 490.3 kB / 361.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.09542, allocations: 16.03 kB / 361.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002425/0.09567, allocations: 28.81 kB / 361.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.09589, allocations: 220.1 kB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.09593, allocations: 8.359 kB / 362 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.678e-05/0.09597, allocations: 16.12 kB / 362 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004364/0.09641, allocations: 165.5 kB / 362.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.09643, allocations: 0 / 362.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.09646, allocations: 0 / 362.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.09647, allocations: 4 kB / 362.2 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003394/0.09682, allocations: 103.8 kB / 362.3 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000642/0.09747, allocations: 424.4 kB / 362.7 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005624/0.09804, allocations: 194.4 kB / 362.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002854/0.09834, allocations: 88.78 kB / 363 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.09837, allocations: 7.984 kB / 363 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004786/0.09886, allocations: 171.2 kB / 363.1 MB, free: 8.938 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.743e-06/0.09887, allocations: 0 / 363.1 MB, free: 8.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.001031/0.0999, allocations: 348.1 kB / 363.5 MB, free: 8.594 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.09996, allocations: 63.39 kB / 363.5 MB, free: 8.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.1001, allocations: 145.6 kB / 363.7 MB, free: 8.367 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.1001, allocations: 37.7 kB / 363.7 MB, free: 8.324 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.738e-05/0.1002, allocations: 104.5 kB / 363.8 MB, free: 8.219 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.276e-05/0.1002, allocations: 39.45 kB / 363.9 MB, free: 8.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.488e-05/0.1003, allocations: 41.7 kB / 363.9 MB, free: 8.133 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.1004, allocations: 330.8 kB / 364.2 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.1005, allocations: 47.97 kB / 364.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.1007, allocations: 113.6 kB / 364.4 MB, free: 7.613 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00027/0.101, allocations: 172.4 kB / 364.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.101, allocations: 0 / 364.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003674/0.1014, allocations: 209.2 kB / 364.8 MB, free: 7.203 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.1014, allocations: 4 kB / 364.8 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.1014, allocations: 4 kB / 364.8 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.1014, allocations: 7.938 kB / 364.8 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.1016, allocations: 35.91 kB / 364.8 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.1016, allocations: 8.219 kB / 364.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.1017, allocations: 27.83 kB / 364.8 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.1018, allocations: 8 kB / 364.8 MB, free: 7.109 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.0001257/0.1019, allocations: 140.1 kB / 365 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.999e-05/0.1019, allocations: 11.91 kB / 365 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007004/0.1026, allocations: 270.3 kB / 365.3 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1027, allocations: 7.875 kB / 365.3 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.768e-06/0.1027, allocations: 0 / 365.3 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.1027, allocations: 11.98 kB / 365.3 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009977/0.1037, allocations: 0.5646 MB / 365.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.1037, allocations: 3.938 kB / 365.8 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.1038, allocations: 15.98 kB / 365.9 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.1038, allocations: 4 kB / 365.9 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.1039, allocations: 3.984 kB / 365.9 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.1039, allocations: 0 / 365.9 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.1039, allocations: 15.86 kB / 365.9 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.1049, allocations: 473.9 kB / 366.3 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.183e-05/0.105, allocations: 88.98 kB / 366.4 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.275e-05/0.105, allocations: 11.98 kB / 366.4 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.1052, allocations: 27.97 kB / 366.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.537e-05/0.1053, allocations: 7.984 kB / 366.5 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.1053, allocations: 7.984 kB / 366.5 MB, free: 5.359 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.777e-05/0.1054, allocations: 110.3 kB / 366.6 MB, free: 5.254 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1054, allocations: 0 / 366.6 MB, free: 5.254 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000305/0.1057, allocations: 35.94 kB / 366.6 MB, free: 5.219 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.0001327/0.1058, allocations: 111.6 kB / 366.7 MB, free: 5.098 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004804/0.1063, allocations: 168 kB / 366.9 MB, free: 4.934 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1063, allocations: 0 / 366.9 MB, free: 4.934 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002613/0.1066, allocations: 91.88 kB / 367 MB, free: 4.844 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/0.1069, allocations: 23.92 kB / 367 MB, free: 4.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008283/0.1077, allocations: 367 kB / 367.4 MB, free: 4.426 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002563/0.108, allocations: 0.7045 MB / 368.1 MB, free: 3.695 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.294e-05/0.108, allocations: 19.42 kB / 368.1 MB, free: 3.676 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.108, allocations: 3.938 kB / 368.1 MB, free: 3.672 MB / 302.1 MB Notification: Performance of Templates: time 0.003482/0.1115, allocations: 1.637 MB / 369.7 MB, free: 2.039 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)