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.001153/0.001153, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001344, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 63.58 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1097, allocations: 50.52 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.00354/0.1132, allocations: 2.028 MB / 360.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.1146, allocations: 0.7363 MB / 361.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.1147, allocations: 11.88 kB / 361.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.184e-05/0.1148, allocations: 23.67 kB / 361.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001516/0.1149, allocations: 51.52 kB / 361.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004159/0.1153, allocations: 147.7 kB / 361.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000388/0.1157, allocations: 347.1 kB / 362.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000176/0.1159, allocations: 60.78 kB / 362.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002631/0.1162, allocations: 155.5 kB / 362.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001919/0.1164, allocations: 159.4 kB / 362.6 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.875e-05/0.1164, allocations: 32 kB / 362.6 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.67e-05/0.1165, allocations: 36 kB / 362.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.78e-05/0.1166, allocations: 79.67 kB / 362.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001361/0.1168, allocations: 143.3 kB / 362.9 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003239/0.1171, allocations: 295 kB / 363.2 MB, free: 9.027 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1171, allocations: 0 / 363.2 MB, free: 9.027 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1171, allocations: 0 / 363.2 MB, free: 9.027 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.1171, allocations: 0 / 363.2 MB, free: 9.027 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.001448/0.1186, allocations: 0.7507 MB / 363.9 MB, free: 8.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.1186, allocations: 8.031 kB / 363.9 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003359/0.119, allocations: 56.62 kB / 364 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003631/0.1193, allocations: 272.7 kB / 364.2 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.497e-05/0.1194, allocations: 16.38 kB / 364.3 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.364e-05/0.1194, allocations: 36.27 kB / 364.3 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007554/0.1202, allocations: 359.1 kB / 364.6 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1202, allocations: 0 / 364.6 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.88e-05/0.1203, allocations: 4 kB / 364.6 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.1203, allocations: 11.98 kB / 364.7 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007333/0.121, allocations: 243.7 kB / 364.9 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.122, allocations: 0.7187 MB / 365.6 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008346/0.1229, allocations: 356.9 kB / 366 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004898/0.1234, allocations: 205.2 kB / 366.2 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.285e-05/0.1234, allocations: 4 kB / 366.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008024/0.1242, allocations: 398.5 kB / 366.6 MB, free: 5.422 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.934e-06/0.1243, allocations: 0 / 366.6 MB, free: 5.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.001769/0.126, allocations: 0.7541 MB / 367.3 MB, free: 4.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.1261, allocations: 67.38 kB / 367.4 MB, free: 4.582 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.1263, allocations: 199.8 kB / 367.6 MB, free: 4.379 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.293e-05/0.1263, allocations: 41.7 kB / 367.6 MB, free: 4.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.978e-05/0.1264, allocations: 136.9 kB / 367.7 MB, free: 4.191 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.316e-05/0.1265, allocations: 106.6 kB / 367.8 MB, free: 4.086 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.1266, allocations: 94.17 kB / 367.9 MB, free: 3.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1268, allocations: 342.8 kB / 368.3 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003938/0.1272, allocations: 165 kB / 368.4 MB, free: 3.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004268/0.1276, allocations: 229.2 kB / 368.7 MB, free: 3.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007813/0.1284, allocations: 446.2 kB / 369.1 MB, free: 2.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1284, allocations: 3.938 kB / 369.1 MB, free: 2.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001042/0.1295, allocations: 0.5753 MB / 369.7 MB, free: 2.148 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.63e-05/0.1295, allocations: 93.09 kB / 369.8 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.1296, allocations: 0 / 369.8 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.1296, allocations: 4 kB / 369.8 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003398/0.1299, allocations: 75.83 kB / 369.8 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.13, allocations: 11.98 kB / 369.9 MB, free: 1.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003251/0.1303, allocations: 67.7 kB / 369.9 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.711e-05/0.1303, allocations: 16 kB / 369.9 MB, free: 1.867 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.0001767/0.1305, allocations: 173.6 kB / 370.1 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.489e-05/0.1306, allocations: 27.62 kB / 370.1 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.31e-05/0.1307, allocations: 34.98 kB / 370.2 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1307, allocations: 4 kB / 370.2 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.1307, allocations: 4 kB / 370.2 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.1307, allocations: 0 / 370.2 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003234/0.131, allocations: 353.2 kB / 370.5 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.131, allocations: 0 / 370.5 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002651/0.1313, allocations: 39.95 kB / 370.6 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.1313, allocations: 4 kB / 370.6 MB, free: 1.184 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.722e-05/0.1314, allocations: 15.97 kB / 370.6 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.1314, allocations: 4 kB / 370.6 MB, free: 1.164 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1314, allocations: 0 / 370.6 MB, free: 1.164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001802/0.1332, allocations: 0.8564 MB / 371.4 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.523e-05/0.1333, allocations: 104.7 kB / 371.5 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.624e-05/0.1333, allocations: 16.03 kB / 371.6 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003271/0.1337, allocations: 63.92 kB / 371.6 MB, free: 92 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.1338, allocations: 48.03 kB / 371.7 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.773e-05/0.1339, allocations: 27.97 kB / 371.7 MB, free: 16 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.1635/0.2974, allocations: 132.9 kB / 371.8 MB, free: 20.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.2974, allocations: 0 / 371.8 MB, free: 20.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005855/0.298, allocations: 80.16 kB / 371.9 MB, free: 20.43 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.0001988/0.2982, allocations: 128.4 kB / 372 MB, free: 20.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001319/0.2996, allocations: 0.6108 MB / 372.6 MB, free: 20.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.2996, allocations: 0 / 372.6 MB, free: 20.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000637/0.3002, allocations: 267.7 kB / 372.9 MB, free: 20.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003714/0.3006, allocations: 41.88 kB / 372.9 MB, free: 20.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001313/0.3019, allocations: 0.5436 MB / 373.5 MB, free: 19.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/0.3022, allocations: 0.7599 MB / 374.2 MB, free: 19.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001643/0.3024, allocations: 34.3 kB / 374.3 MB, free: 19.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.843e-05/0.3025, allocations: 30 kB / 374.3 MB, free: 19.21 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3025, allocations: 1.75 kB / 374.3 MB, free: 19.21 MB / 302.1 MB Notification: Performance of Templates: time 0.009649/0.3121, allocations: 4.25 MB / 378.6 MB, free: 19.04 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 -s gbode -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1)