Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.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.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001393/0.001393, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001522, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 55.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3777/0.3791, allocations: 50.55 MB / 409.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003327/0.3825, allocations: 1.719 MB / 411 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001555/0.3841, allocations: 0.6662 MB / 411.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001801/0.3843, allocations: 0 / 411.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001792/0.3845, allocations: 15.8 kB / 411.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001034/0.3846, allocations: 19.8 kB / 411.7 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005261/0.3851, allocations: 91.77 kB / 411.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002345/0.3854, allocations: 151.5 kB / 411.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.3856, allocations: 29.45 kB / 411.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001989/0.3858, allocations: 67.75 kB / 412 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/0.3859, allocations: 67.73 kB / 412.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.928e-05/0.3859, allocations: 12 kB / 412.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.261e-05/0.386, allocations: 20 kB / 412.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.694e-05/0.3861, allocations: 39.89 kB / 412.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.009e-05/0.3862, allocations: 67.64 kB / 412.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002398/0.3864, allocations: 139.3 kB / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3864, allocations: 0 / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3864, allocations: 0 / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.3864, allocations: 0 / 412.3 MB, free: 14.48 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0008191/0.3873, allocations: 487.8 kB / 412.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.3873, allocations: 19.97 kB / 412.8 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002603/0.3876, allocations: 36.72 kB / 412.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003273/0.3879, allocations: 211.7 kB / 413.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/0.388, allocations: 12.36 kB / 413.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.551e-05/0.388, allocations: 16.12 kB / 413.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004002/0.3884, allocations: 165.4 kB / 413.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.3884, allocations: 0 / 413.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.3885, allocations: 11.94 kB / 413.3 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.718e-06/0.3885, allocations: 0 / 413.3 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002953/0.3888, allocations: 95.91 kB / 413.4 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006679/0.3894, allocations: 420.5 kB / 413.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005049/0.39, allocations: 194.4 kB / 414 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002338/0.3902, allocations: 96.72 kB / 414.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.3902, allocations: 3.984 kB / 414.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003764/0.3906, allocations: 171.2 kB / 414.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.3906, allocations: 0 / 414.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009247/0.3916, allocations: 352.8 kB / 414.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.063e-05/0.3916, allocations: 63.39 kB / 414.6 MB, free: 11.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.3918, allocations: 141.7 kB / 414.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.3918, allocations: 33.7 kB / 414.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.14e-05/0.3919, allocations: 104.5 kB / 414.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.165e-05/0.3919, allocations: 47.39 kB / 415 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.658e-05/0.392, allocations: 41.7 kB / 415 MB, free: 11.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.3922, allocations: 326.8 kB / 415.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.3923, allocations: 47.97 kB / 415.4 MB, free: 11.22 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.3924, allocations: 116.5 kB / 415.5 MB, free: 11.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002582/0.3927, allocations: 176.4 kB / 415.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3927, allocations: 3.938 kB / 415.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003417/0.3931, allocations: 197.4 kB / 415.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.3931, allocations: 4 kB / 415.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.3931, allocations: 4 kB / 415.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.3931, allocations: 7.938 kB / 415.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.3933, allocations: 39.91 kB / 415.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.3933, allocations: 4 kB / 415.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.677e-05/0.3934, allocations: 19.89 kB / 415.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.3934, allocations: 12.28 kB / 415.9 MB, free: 10.58 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 (signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,$whenCondition2,$whenCondition1,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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0001363/0.3936, allocations: 135.4 kB / 416.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.699e-05/0.3936, allocations: 15.81 kB / 416.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006349/0.3943, allocations: 282.2 kB / 416.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3943, allocations: 7.938 kB / 416.4 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.3943, allocations: 0 / 416.4 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3943, allocations: 3.984 kB / 416.4 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000867/0.3952, allocations: 0.5607 MB / 416.9 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3952, allocations: 7.938 kB / 416.9 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.3953, allocations: 19.92 kB / 417 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.3953, allocations: 7.938 kB / 417 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.159e-05/0.3953, allocations: 7.984 kB / 417 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3953, allocations: 0 / 417 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3953, allocations: 4 kB / 417 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009303/0.3963, allocations: 467.1 kB / 417.4 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.45e-05/0.3963, allocations: 92.89 kB / 417.5 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.633e-05/0.3964, allocations: 15.92 kB / 417.5 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/0.3966, allocations: 23.97 kB / 417.6 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.835e-05/0.3966, allocations: 11.98 kB / 417.6 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.3966, allocations: 7.984 kB / 417.6 MB, free: 8.824 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.467e-05/0.3967, allocations: 106.8 kB / 417.7 MB, free: 8.723 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3967, allocations: 0 / 417.7 MB, free: 8.723 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002673/0.397, allocations: 32.06 kB / 417.7 MB, free: 8.691 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (sine.phi) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,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: 8 (signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.t_min,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.t_min) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.000136/0.3971, allocations: 111.2 kB / 417.8 MB, free: 8.574 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004117/0.3975, allocations: 179.6 kB / 418 MB, free: 8.402 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3976, allocations: 4.125 kB / 418 MB, free: 8.398 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002326/0.3978, allocations: 91.88 kB / 418.1 MB, free: 8.309 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.3981, allocations: 14.58 kB / 418.1 MB, free: 8.297 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007762/0.3989, allocations: 336.9 kB / 418.4 MB, free: 7.941 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.3992, allocations: 0.7045 MB / 419.1 MB, free: 7.211 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.465e-05/0.3992, allocations: 17.08 kB / 419.2 MB, free: 7.195 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.698e-05/0.3993, allocations: 19.44 kB / 419.2 MB, free: 7.176 MB / 334.1 MB Notification: Performance of SimCode: time 1.91e-07/0.3993, allocations: 0 / 419.2 MB, free: 7.176 MB / 334.1 MB Notification: Performance of Templates: time 0.004465/0.4038, allocations: 1.242 MB / 420.4 MB, free: 5.934 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)