Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00107/0.00107, allocations: 99.89 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001312, allocations: 191.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002738/0.0002741, allocations: 4 kB / 307.1 MB, free: 1.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1044, allocations: 51.53 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.00218/0.1066, allocations: 1.665 MB / 360.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.1081, allocations: 0.7133 MB / 361 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001774/0.1083, allocations: 4 kB / 361 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.182e-05/0.1084, allocations: 15.8 kB / 361 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001851/0.1086, allocations: 31.7 kB / 361.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004513/0.109, allocations: 115.8 kB / 361.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003795/0.1094, allocations: 299.2 kB / 361.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.1096, allocations: 52.75 kB / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003213/0.11, allocations: 131.6 kB / 361.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/0.1102, allocations: 147.4 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.579e-05/0.1102, allocations: 16 kB / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.996e-05/0.1103, allocations: 20 kB / 361.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.023e-05/0.1104, allocations: 51.8 kB / 361.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.415e-05/0.1105, allocations: 69.56 kB / 361.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000224/0.1107, allocations: 199.8 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.1107, allocations: 0 / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1107, allocations: 0 / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1107, allocations: 0 / 362.1 MB, free: 10.11 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.001366/0.1121, allocations: 0.7196 MB / 362.9 MB, free: 9.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.1122, allocations: 8.031 kB / 362.9 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003115/0.1125, allocations: 75.58 kB / 362.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002874/0.1128, allocations: 259.5 kB / 363.2 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.883e-05/0.1128, allocations: 23.94 kB / 363.2 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.889e-05/0.1129, allocations: 31.98 kB / 363.2 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008031/0.1137, allocations: 375 kB / 363.6 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.1137, allocations: 3.938 kB / 363.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.212e-05/0.1138, allocations: 7.984 kB / 363.6 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.1138, allocations: 12 kB / 363.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007629/0.1146, allocations: 295.7 kB / 363.9 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.1156, allocations: 0.7147 MB / 364.6 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008676/0.1165, allocations: 397.1 kB / 365 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005177/0.117, allocations: 237.5 kB / 365.3 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.1171, allocations: 4 kB / 365.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008345/0.1179, allocations: 427.2 kB / 365.7 MB, free: 6.348 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 4.008e-06/0.1179, allocations: 3.984 kB / 365.7 MB, free: 6.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.001877/0.1198, allocations: 0.8323 MB / 366.5 MB, free: 5.504 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.059e-05/0.1199, allocations: 63.41 kB / 366.6 MB, free: 5.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.1201, allocations: 199.7 kB / 366.8 MB, free: 5.227 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.324e-05/0.1201, allocations: 41.7 kB / 366.8 MB, free: 5.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.1202, allocations: 136.9 kB / 366.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.184e-05/0.1203, allocations: 102.6 kB / 367 MB, free: 4.938 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.26e-05/0.1204, allocations: 12 kB / 367.1 MB, free: 4.926 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1205, allocations: 342.8 kB / 367.4 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004033/0.1209, allocations: 173 kB / 367.6 MB, free: 4.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004404/0.1214, allocations: 257.3 kB / 367.8 MB, free: 4.137 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004638/0.1218, allocations: 261.6 kB / 368.1 MB, free: 3.867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.227e-06/0.1218, allocations: 0 / 368.1 MB, free: 3.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001057/0.1229, allocations: 0.5972 MB / 368.7 MB, free: 3.246 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.587e-05/0.123, allocations: 93.31 kB / 368.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.934e-06/0.123, allocations: 4 kB / 368.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.123, allocations: 4 kB / 368.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003544/0.1234, allocations: 87.83 kB / 368.9 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.1234, allocations: 7.984 kB / 368.9 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003399/0.1237, allocations: 75.64 kB / 368.9 MB, free: 2.961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.59e-05/0.1238, allocations: 20 kB / 369 MB, free: 2.941 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 ($PRE.signalExtrema3.t_min,signalExtrema3.t_min,$PRE.signalExtrema3.t_max,signalExtrema3.t_max,$PRE.signalExtrema2.t_min,signalExtrema2.t_min,$PRE.signalExtrema2.t_max,signalExtrema2.t_max,$PRE.signalExtrema1.t_min,signalExtrema1.t_min,$PRE.signalExtrema1.t_max,signalExtrema1.t_max,$whenCondition5,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$PRE.sawTooth.T_start,sawTooth.T_start,$PRE.sawTooth.count,sawTooth.count,$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,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$PRE.sawTooth1.T_start,sawTooth1.T_start,$PRE.sawTooth1.count,sawTooth1.count,$PRE.signalExtrema3.y_min,signalExtrema3.y_min,$PRE.signalExtrema3.y_max,signalExtrema3.y_max) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001682/0.124, allocations: 165.7 kB / 369.1 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.662e-05/0.124, allocations: 27.67 kB / 369.1 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.549e-05/0.1241, allocations: 42.92 kB / 369.2 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.1241, allocations: 4 kB / 369.2 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/0.1241, allocations: 0 / 369.2 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1242, allocations: 0 / 369.2 MB, free: 2.699 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003605/0.1245, allocations: 353.1 kB / 369.5 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1245, allocations: 4 kB / 369.5 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002806/0.1248, allocations: 55.89 kB / 369.6 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.664e-06/0.1248, allocations: 11.95 kB / 369.6 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.649e-05/0.1249, allocations: 19.91 kB / 369.6 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.1249, allocations: 0 / 369.6 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1249, allocations: 4 kB / 369.6 MB, free: 2.211 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001857/0.1268, allocations: 0.9268 MB / 370.6 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.448e-05/0.1268, allocations: 100.8 kB / 370.6 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.669e-05/0.1269, allocations: 24.08 kB / 370.7 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003397/0.1273, allocations: 79.92 kB / 370.8 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.1274, allocations: 51.91 kB / 370.8 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.607e-05/0.1274, allocations: 27.97 kB / 370.8 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001207/0.1276, allocations: 136.2 kB / 371 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1276, allocations: 3.938 kB / 371 MB, free: 0.832 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003211/0.1279, allocations: 83.89 kB / 371 MB, free: 0.75 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 (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.0001607/0.1281, allocations: 125.4 kB / 371.2 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1906/0.3186, allocations: 0.6347 MB / 371.8 MB, free: 20.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.3187, allocations: 0.875 kB / 371.8 MB, free: 20.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009392/0.3196, allocations: 294.7 kB / 372.1 MB, free: 20.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004741/0.3201, allocations: 43.05 kB / 372.1 MB, free: 20.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.3215, allocations: 0.6217 MB / 372.8 MB, free: 20.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.3218, allocations: 0.7564 MB / 373.5 MB, free: 19.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001865/0.322, allocations: 37.8 kB / 373.6 MB, free: 19.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.3221, allocations: 26.19 kB / 373.6 MB, free: 19.44 MB / 302.1 MB Notification: Performance of SimCode: time 1.252e-06/0.3221, allocations: 0 / 373.6 MB, free: 19.44 MB / 302.1 MB Notification: Performance of Templates: time 0.01041/0.3325, allocations: 3.498 MB / 377.1 MB, free: 19.26 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1)