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.001634/0.001634, allocations: 122.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002543/0.002544, allocations: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001167, allocations: 63.83 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.384/0.3852, allocations: 50.54 MB / 409.2 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.004122/0.3894, allocations: 2.041 MB / 411.3 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.3911, allocations: 0.7285 MB / 412 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.3913, allocations: 7.938 kB / 412 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.254e-05/0.3914, allocations: 23.67 kB / 412 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002102/0.3916, allocations: 47.53 kB / 412.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005577/0.3922, allocations: 151.6 kB / 412.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004709/0.3926, allocations: 359.2 kB / 412.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002076/0.3929, allocations: 52.78 kB / 412.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003396/0.3932, allocations: 159.5 kB / 412.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000202/0.3934, allocations: 163.4 kB / 413 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.324e-05/0.3935, allocations: 32 kB / 413 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.125e-05/0.3936, allocations: 36 kB / 413 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.403e-05/0.3937, allocations: 75.73 kB / 413.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.3938, allocations: 139.3 kB / 413.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000349/0.3942, allocations: 302.6 kB / 413.5 MB, free: 13.31 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3942, allocations: 0 / 413.5 MB, free: 13.31 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3942, allocations: 0 / 413.5 MB, free: 13.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.3942, allocations: 0 / 413.5 MB, free: 13.31 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.001677/0.3959, allocations: 0.7443 MB / 414.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.3959, allocations: 8.031 kB / 414.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003564/0.3963, allocations: 52.62 kB / 414.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004104/0.3967, allocations: 280.5 kB / 414.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.834e-05/0.3968, allocations: 20.38 kB / 414.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.086e-05/0.3969, allocations: 24.36 kB / 414.6 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008677/0.3977, allocations: 355.1 kB / 415 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.3978, allocations: 0 / 415 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.214e-05/0.3978, allocations: 11.98 kB / 415 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.3978, allocations: 4 kB / 415 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000721/0.3985, allocations: 251.7 kB / 415.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/0.3996, allocations: 0.6993 MB / 416 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009009/0.4005, allocations: 360.9 kB / 416.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004884/0.401, allocations: 209.6 kB / 416.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.778e-05/0.401, allocations: 0 / 416.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008712/0.4019, allocations: 402.8 kB / 416.9 MB, free: 9.715 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 1.974e-06/0.4019, allocations: 0 / 416.9 MB, free: 9.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.002153/0.4041, allocations: 0.7503 MB / 417.7 MB, free: 8.957 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.452e-05/0.4042, allocations: 67.41 kB / 417.7 MB, free: 8.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001811/0.4043, allocations: 195.7 kB / 417.9 MB, free: 8.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.165e-05/0.4044, allocations: 41.7 kB / 418 MB, free: 8.633 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001857/0.4046, allocations: 132.9 kB / 418.1 MB, free: 8.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.423e-05/0.4047, allocations: 110.5 kB / 418.2 MB, free: 8.391 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002008/0.4049, allocations: 94.23 kB / 418.3 MB, free: 8.293 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003145/0.4052, allocations: 346.8 kB / 418.6 MB, free: 7.945 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004221/0.4056, allocations: 161 kB / 418.8 MB, free: 7.785 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004431/0.4061, allocations: 245.2 kB / 419 MB, free: 7.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000809/0.4069, allocations: 432.6 kB / 419.4 MB, free: 7.051 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.4069, allocations: 4 kB / 419.4 MB, free: 7.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001191/0.4081, allocations: 0.5657 MB / 420 MB, free: 6.457 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.075e-05/0.4082, allocations: 89.09 kB / 420.1 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.4082, allocations: 7.984 kB / 420.1 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-05/0.4083, allocations: 4 kB / 420.1 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003541/0.4086, allocations: 76.11 kB / 420.2 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.136e-05/0.4087, allocations: 11.92 kB / 420.2 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003322/0.409, allocations: 63.64 kB / 420.3 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.033e-05/0.4091, allocations: 20 kB / 420.3 MB, free: 6.172 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.0002257/0.4093, allocations: 165.7 kB / 420.4 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.284e-05/0.4094, allocations: 31.72 kB / 420.5 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.901e-05/0.4095, allocations: 38.98 kB / 420.5 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.4095, allocations: 7.984 kB / 420.5 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.4095, allocations: 0 / 420.5 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.4095, allocations: 0 / 420.5 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003918/0.4099, allocations: 357 kB / 420.9 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.4099, allocations: 3.938 kB / 420.9 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002618/0.4102, allocations: 47.95 kB / 420.9 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.4102, allocations: 0 / 420.9 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.168e-05/0.4102, allocations: 23.97 kB / 420.9 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.4102, allocations: 0 / 420.9 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.4103, allocations: 0 / 420.9 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001975/0.4122, allocations: 0.8563 MB / 421.8 MB, free: 4.574 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.872e-05/0.4123, allocations: 96.77 kB / 421.9 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.114e-05/0.4124, allocations: 20.03 kB / 421.9 MB, free: 4.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003244/0.4127, allocations: 59.92 kB / 422 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/0.4129, allocations: 51.94 kB / 422 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.793e-05/0.4129, allocations: 27.97 kB / 422 MB, free: 4.305 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001815/0.4131, allocations: 132.2 kB / 422.2 MB, free: 4.176 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4131, allocations: 0 / 422.2 MB, free: 4.176 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003165/0.4134, allocations: 83.89 kB / 422.3 MB, free: 4.094 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.0001829/0.4136, allocations: 135.7 kB / 422.4 MB, free: 3.957 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.4149, allocations: 0.6063 MB / 423 MB, free: 3.316 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4149, allocations: 3.938 kB / 423 MB, free: 3.312 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005699/0.4155, allocations: 263.6 kB / 423.3 MB, free: 3.055 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003245/0.4158, allocations: 42.64 kB / 423.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.4171, allocations: 0.539 MB / 423.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004436/0.4176, allocations: 0.7566 MB / 424.6 MB, free: 1.656 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001315/0.4177, allocations: 39.03 kB / 424.6 MB, free: 1.621 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.4179, allocations: 31.42 kB / 424.7 MB, free: 1.59 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.4179, allocations: 0 / 424.7 MB, free: 1.59 MB / 334.1 MB Notification: Performance of Templates: time 0.008376/0.4263, allocations: 4.296 MB / 429 MB, free: 13.3 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)