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.001124/0.001124, allocations: 110.6 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00125/0.00125, allocations: 212 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 59.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.288, allocations: 50.55 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.002898/0.2909, allocations: 2.03 MB / 412 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.2921, allocations: 0.7324 MB / 412.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.991e-05/0.2922, allocations: 3.938 kB / 412.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.431e-05/0.2923, allocations: 19.73 kB / 412.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001461/0.2924, allocations: 55.44 kB / 412.8 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003879/0.2928, allocations: 143.7 kB / 412.9 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003615/0.2932, allocations: 359.1 kB / 413.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.2934, allocations: 60.77 kB / 413.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002601/0.2936, allocations: 151.6 kB / 413.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.2938, allocations: 167.4 kB / 413.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.08e-05/0.2939, allocations: 28 kB / 413.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.258e-05/0.294, allocations: 32 kB / 413.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.983e-05/0.294, allocations: 79.72 kB / 413.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.2942, allocations: 139.3 kB / 413.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003059/0.2945, allocations: 298.7 kB / 414.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2945, allocations: 4 kB / 414.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2945, allocations: 0 / 414.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.2945, allocations: 0 / 414.2 MB, free: 13.3 MB / 334.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.001477/0.296, allocations: 0.7443 MB / 414.9 MB, free: 12.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.2961, allocations: 8.031 kB / 415 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003486/0.2964, allocations: 60.55 kB / 415 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003406/0.2968, allocations: 268.7 kB / 415.3 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.627e-05/0.2968, allocations: 20.36 kB / 415.3 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.554e-05/0.2969, allocations: 32.38 kB / 415.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007824/0.2977, allocations: 359.1 kB / 415.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.2977, allocations: 0 / 415.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.2978, allocations: 7.984 kB / 415.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.2978, allocations: 12 kB / 415.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007553/0.2985, allocations: 243.8 kB / 415.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.2996, allocations: 0.7071 MB / 416.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008728/0.3005, allocations: 360.9 kB / 417 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005183/0.301, allocations: 201.6 kB / 417.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.301, allocations: 7.984 kB / 417.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007939/0.3018, allocations: 394.9 kB / 417.6 MB, free: 9.707 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 3.606e-06/0.3018, allocations: 4 kB / 417.6 MB, free: 9.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.00188/0.3037, allocations: 0.7502 MB / 418.3 MB, free: 8.945 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/0.3038, allocations: 67.39 kB / 418.4 MB, free: 8.867 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001657/0.304, allocations: 191.7 kB / 418.6 MB, free: 8.672 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.554e-05/0.304, allocations: 45.69 kB / 418.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.424e-05/0.3041, allocations: 132.9 kB / 418.8 MB, free: 8.488 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.3042, allocations: 118.5 kB / 418.9 MB, free: 8.371 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/0.3044, allocations: 94.23 kB / 419 MB, free: 8.273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.3046, allocations: 342.8 kB / 419.3 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004316/0.3051, allocations: 157 kB / 419.5 MB, free: 7.773 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004897/0.3056, allocations: 237.2 kB / 419.7 MB, free: 7.516 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000837/0.3064, allocations: 443.8 kB / 420.1 MB, free: 7.039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3064, allocations: 4 kB / 420.1 MB, free: 7.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001097/0.3075, allocations: 0.5643 MB / 420.7 MB, free: 6.445 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.428e-05/0.3076, allocations: 89.31 kB / 420.8 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.3076, allocations: 4 kB / 420.8 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.003e-05/0.3076, allocations: 4 kB / 420.8 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003584/0.308, allocations: 83.81 kB / 420.9 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.934e-05/0.308, allocations: 4 kB / 420.9 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003423/0.3084, allocations: 63.64 kB / 420.9 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.3084, allocations: 16 kB / 421 MB, free: 6.168 MB / 334.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.0001923/0.3086, allocations: 181.6 kB / 421.1 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.173e-05/0.3087, allocations: 23.72 kB / 421.2 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.635e-05/0.3088, allocations: 34.98 kB / 421.2 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.3088, allocations: 3.984 kB / 421.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3088, allocations: 0 / 421.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.528e-05/0.3089, allocations: 108.6 kB / 421.3 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.813e-05/0.309, allocations: 19.98 kB / 421.3 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003509/0.3093, allocations: 59.88 kB / 421.4 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.3095, allocations: 55.92 kB / 421.4 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001609/0.3111, allocations: 0.6732 MB / 422.1 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001921/0.313, allocations: 0.9665 MB / 423.1 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005578/0.3136, allocations: 247.9 kB / 423.3 MB, free: 3.754 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001003/0.3137, allocations: 136.2 kB / 423.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of Backend: time 5.61e-07/0.3137, allocations: 0 / 423.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.3147, allocations: 0.5051 MB / 424 MB, free: 3.074 MB / 334.1 MB Notification: Performance of SimCode: time 0.0009128/0.3156, allocations: 0.8713 MB / 424.8 MB, free: 2.152 MB / 334.1 MB Notification: Performance of Templates: time 0.009085/0.3247, allocations: 5.161 MB / 430 MB, free: 13 MB / 350.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)