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.001258/0.001258, allocations: 117.7 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.001358/0.001358, allocations: 200.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 59.91 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2685, allocations: 50.55 MB / 409.9 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003254/0.2718, allocations: 2.03 MB / 412 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.2731, allocations: 0.7324 MB / 412.7 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.2733, allocations: 7.938 kB / 412.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.737e-05/0.2733, allocations: 23.67 kB / 412.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001481/0.2735, allocations: 47.52 kB / 412.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004295/0.2739, allocations: 147.7 kB / 412.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000394/0.2743, allocations: 355.2 kB / 413.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.2745, allocations: 64.77 kB / 413.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002793/0.2748, allocations: 147.6 kB / 413.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002015/0.275, allocations: 167.4 kB / 413.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.495e-05/0.2751, allocations: 36 kB / 413.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.798e-05/0.2752, allocations: 32 kB / 413.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.204e-05/0.2753, allocations: 75.73 kB / 413.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.2754, allocations: 139.3 kB / 413.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003284/0.2757, allocations: 302.6 kB / 414.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.2758, allocations: 0 / 414.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2758, allocations: 0 / 414.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.2758, allocations: 0 / 414.2 MB, free: 13.24 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.001546/0.2773, allocations: 0.7443 MB / 414.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.2774, allocations: 8.031 kB / 415 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000342/0.2777, allocations: 56.62 kB / 415 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003659/0.2781, allocations: 276.5 kB / 415.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.2782, allocations: 20.38 kB / 415.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.842e-05/0.2782, allocations: 32.36 kB / 415.3 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008183/0.2791, allocations: 351.1 kB / 415.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.2791, allocations: 0 / 415.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.784e-05/0.2791, allocations: 11.98 kB / 415.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.2791, allocations: 4 kB / 415.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007866/0.2799, allocations: 247.7 kB / 415.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.281, allocations: 0.7032 MB / 416.6 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008966/0.2819, allocations: 360.9 kB / 417 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005374/0.2825, allocations: 201.6 kB / 417.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.2825, allocations: 11.98 kB / 417.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008613/0.2834, allocations: 398.8 kB / 417.6 MB, free: 9.641 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 1.884e-06/0.2834, allocations: 0 / 417.6 MB, free: 9.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.001942/0.2853, allocations: 0.7464 MB / 418.3 MB, free: 8.887 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.534e-05/0.2854, allocations: 63.41 kB / 418.4 MB, free: 8.812 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002279/0.2856, allocations: 199.7 kB / 418.6 MB, free: 8.609 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.733e-05/0.2857, allocations: 41.7 kB / 418.6 MB, free: 8.562 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/0.2858, allocations: 140.9 kB / 418.8 MB, free: 8.422 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.71e-05/0.2859, allocations: 106.5 kB / 418.9 MB, free: 8.316 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001672/0.2861, allocations: 98.23 kB / 419 MB, free: 8.215 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002226/0.2863, allocations: 338.8 kB / 419.3 MB, free: 7.875 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004214/0.2868, allocations: 169 kB / 419.5 MB, free: 7.707 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004614/0.2872, allocations: 237.2 kB / 419.7 MB, free: 7.449 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008982/0.2882, allocations: 448.6 kB / 420.1 MB, free: 6.965 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.2882, allocations: 0 / 420.1 MB, free: 6.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001117/0.2893, allocations: 0.5637 MB / 420.7 MB, free: 6.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.72e-05/0.2894, allocations: 97.09 kB / 420.8 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.2894, allocations: 0 / 420.8 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.2894, allocations: 4 kB / 420.8 MB, free: 6.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003629/0.2898, allocations: 71.89 kB / 420.9 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/0.2898, allocations: 11.92 kB / 420.9 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003448/0.2902, allocations: 67.73 kB / 420.9 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.544e-05/0.2902, allocations: 16 kB / 421 MB, free: 6.098 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.000195/0.2904, allocations: 169.7 kB / 421.1 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.52e-05/0.2905, allocations: 27.72 kB / 421.2 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.356e-05/0.2906, allocations: 34.98 kB / 421.2 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.2906, allocations: 4 kB / 421.2 MB, free: 5.855 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.026e-06/0.2906, allocations: 7.938 kB / 421.2 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.2906, allocations: 0 / 421.2 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000356/0.291, allocations: 353 kB / 421.5 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.291, allocations: 0 / 421.5 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002733/0.2913, allocations: 43.95 kB / 421.6 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.2913, allocations: 7.984 kB / 421.6 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.712e-05/0.2913, allocations: 15.97 kB / 421.6 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.2913, allocations: 0 / 421.6 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.2913, allocations: 4 kB / 421.6 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001979/0.2933, allocations: 0.8563 MB / 422.5 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.69e-05/0.2934, allocations: 104.8 kB / 422.6 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.19e-05/0.2935, allocations: 16.03 kB / 422.6 MB, free: 4.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003632/0.2938, allocations: 63.92 kB / 422.7 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.294, allocations: 47.94 kB / 422.7 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-05/0.294, allocations: 27.97 kB / 422.7 MB, free: 4.234 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001121/0.2942, allocations: 128.2 kB / 422.8 MB, free: 4.109 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2942, allocations: 0 / 422.8 MB, free: 4.109 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003251/0.2945, allocations: 83.89 kB / 422.9 MB, free: 4.027 MB / 334.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.000175/0.2947, allocations: 131.7 kB / 423.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.2959, allocations: 0.6069 MB / 423.7 MB, free: 3.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2959, allocations: 4.375 kB / 423.7 MB, free: 3.246 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006183/0.2966, allocations: 259.6 kB / 423.9 MB, free: 2.992 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.297, allocations: 43.95 kB / 424 MB, free: 2.949 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.2982, allocations: 0.5641 MB / 424.5 MB, free: 2.348 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.2985, allocations: 0.7566 MB / 425.3 MB, free: 1.559 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.2987, allocations: 35.42 kB / 425.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2987, allocations: 0 / 425.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of Templates: time 0.006224/0.3049, allocations: 3.998 MB / 429.3 MB, free: 13.53 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)