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.0009879/0.000988, allocations: 98.38 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001156/0.001156, allocations: 192 kB / 17.91 MB, free: 5.926 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.7 MB / 246.4 MB, free: 9.707 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002432/0.0002434, allocations: 7.984 kB / 307.1 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1045, allocations: 51.52 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.001876/0.1064, allocations: 1.415 MB / 360 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001389/0.1078, allocations: 0.6238 MB / 360.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.108, allocations: 4 kB / 360.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.1082, allocations: 15.86 kB / 360.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.352e-05/0.1082, allocations: 11.86 kB / 360.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000376/0.1086, allocations: 63.86 kB / 360.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002122/0.1088, allocations: 139.6 kB / 360.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002016/0.1091, allocations: 25.42 kB / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002547/0.1093, allocations: 59.83 kB / 361 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001418/0.1095, allocations: 51.75 kB / 361 MB, free: 11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.293e-05/0.1095, allocations: 8 kB / 361 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.652e-05/0.1096, allocations: 19.98 kB / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.15e-05/0.1097, allocations: 27.91 kB / 361.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.998e-05/0.1097, allocations: 53.61 kB / 361.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000195/0.1099, allocations: 88.05 kB / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.019e-05/0.11, allocations: 0 / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.11, allocations: 0 / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.11, allocations: 0 / 361.2 MB, free: 10.8 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.0007995/0.1108, allocations: 470.3 kB / 361.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.753e-05/0.1109, allocations: 8.031 kB / 361.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002621/0.1111, allocations: 35.88 kB / 361.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.1114, allocations: 203.4 kB / 361.9 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.514e-05/0.1114, allocations: 16 kB / 361.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.745e-05/0.1115, allocations: 15.98 kB / 361.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004399/0.1119, allocations: 185.4 kB / 362.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.1119, allocations: 0 / 362.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.112, allocations: 4 kB / 362.1 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.112, allocations: 4 kB / 362.1 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003309/0.1123, allocations: 123.9 kB / 362.3 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006638/0.113, allocations: 428.4 kB / 362.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005606/0.1136, allocations: 234.4 kB / 362.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002726/0.1138, allocations: 112.8 kB / 363 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.597e-05/0.1139, allocations: 0 / 363 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004114/0.1143, allocations: 199.1 kB / 363.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.1143, allocations: 0 / 363.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009733/0.1153, allocations: 411.7 kB / 363.6 MB, free: 8.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.1153, allocations: 55.41 kB / 363.7 MB, free: 8.156 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.1155, allocations: 150.3 kB / 363.8 MB, free: 8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.1155, allocations: 29.7 kB / 363.8 MB, free: 7.965 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.942e-05/0.1155, allocations: 108.4 kB / 363.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.14e-05/0.1156, allocations: 43.44 kB / 364 MB, free: 7.812 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.128e-05/0.1156, allocations: 4 kB / 364 MB, free: 7.809 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.1157, allocations: 334.7 kB / 364.3 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.1159, allocations: 51.97 kB / 364.4 MB, free: 7.422 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.116, allocations: 117.6 kB / 364.5 MB, free: 7.277 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.1162, allocations: 63.92 kB / 364.5 MB, free: 7.215 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.1162, allocations: 7.938 kB / 364.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003767/0.1166, allocations: 205.3 kB / 364.8 MB, free: 7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.1166, allocations: 4.281 kB / 364.8 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.1166, allocations: 12 kB / 364.8 MB, free: 6.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.1167, allocations: 7.984 kB / 364.8 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001828/0.1169, allocations: 35.92 kB / 364.8 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.1169, allocations: 7.984 kB / 364.8 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.879e-05/0.117, allocations: 23.83 kB / 364.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.117, allocations: 12 kB / 364.9 MB, free: 6.898 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 ($PRE.signalExtrema2.t_max,signalExtrema2.t_max,$PRE.signalExtrema2.t_min,signalExtrema2.t_min,$PRE.signalExtrema1.t_max,signalExtrema1.t_max,$PRE.signalExtrema1.t_min,signalExtrema1.t_min,$whenCondition2,$whenCondition1,$PRE.signalExtrema1.y_min,signalExtrema1.y_min,$PRE.signalExtrema1.y_max,signalExtrema1.y_max,$PRE.signalExtrema2.y_min,signalExtrema2.y_min,$PRE.signalExtrema2.y_max,signalExtrema2.y_max) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.1171, allocations: 132.1 kB / 365 MB, free: 6.758 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.334e-05/0.1172, allocations: 19.81 kB / 365 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007087/0.1179, allocations: 322.2 kB / 365.3 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.1179, allocations: 4 kB / 365.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1179, allocations: 0 / 365.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.1179, allocations: 3.984 kB / 365.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009586/0.1189, allocations: 0.6075 MB / 365.9 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1189, allocations: 0 / 365.9 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.119, allocations: 15.98 kB / 366 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.119, allocations: 0 / 366 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.119, allocations: 11.98 kB / 366 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.1191, allocations: 3.938 kB / 366 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1191, allocations: 4 kB / 366 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.1201, allocations: 0.5211 MB / 366.5 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.261e-05/0.1201, allocations: 88.95 kB / 366.6 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.209e-05/0.1202, allocations: 11.98 kB / 366.6 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.1204, allocations: 40.03 kB / 366.6 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.1204, allocations: 15.92 kB / 366.6 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.1205, allocations: 11.98 kB / 366.7 MB, free: 4.992 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.676e-05/0.1205, allocations: 106.8 kB / 366.8 MB, free: 4.891 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1205, allocations: 0 / 366.8 MB, free: 4.891 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003481/0.1209, allocations: 31.98 kB / 366.8 MB, free: 4.859 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001688/0.1211, allocations: 111.5 kB / 366.9 MB, free: 4.738 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005077/0.1216, allocations: 188 kB / 367.1 MB, free: 4.555 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.1216, allocations: 0 / 367.1 MB, free: 4.555 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002766/0.1219, allocations: 108.3 kB / 367.2 MB, free: 4.449 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002985/0.1222, allocations: 14.91 kB / 367.2 MB, free: 4.438 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000985/0.1232, allocations: 393.9 kB / 367.6 MB, free: 4.027 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.1235, allocations: 0.7087 MB / 368.3 MB, free: 3.293 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.146e-05/0.1236, allocations: 13.08 kB / 368.3 MB, free: 3.273 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.154e-05/0.1236, allocations: 11.44 kB / 368.3 MB, free: 3.266 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1236, allocations: 4 kB / 368.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of Templates: time 0.00389/0.1275, allocations: 1.062 MB / 369.4 MB, free: 2.207 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)