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.001067/0.001067, allocations: 118.8 kB / 17.78 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001114/0.001114, allocations: 202 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 55.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3092, allocations: 50.53 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002969/0.3122, allocations: 1.73 MB / 411 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.3134, allocations: 0.67 MB / 411.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.719e-05/0.3135, allocations: 4 kB / 411.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.3137, allocations: 15.8 kB / 411.6 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.789e-05/0.3137, allocations: 23.78 kB / 411.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003101/0.314, allocations: 79.78 kB / 411.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001913/0.3142, allocations: 151.6 kB / 411.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.3144, allocations: 29.44 kB / 411.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001522/0.3145, allocations: 67.77 kB / 412 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.3146, allocations: 67.67 kB / 412.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.843e-05/0.3147, allocations: 16 kB / 412.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.078e-05/0.3147, allocations: 20 kB / 412.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.583e-05/0.3148, allocations: 39.83 kB / 412.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.291e-05/0.3149, allocations: 67.7 kB / 412.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001916/0.3151, allocations: 139.2 kB / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3151, allocations: 0 / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3151, allocations: 4 kB / 412.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.3151, 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.0007827/0.3159, allocations: 491.8 kB / 412.8 MB, free: 13.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.3159, allocations: 8.031 kB / 412.8 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002437/0.3162, allocations: 32.73 kB / 412.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.3165, allocations: 216.1 kB / 413.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.135e-05/0.3165, allocations: 12.38 kB / 413.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.006e-05/0.3166, allocations: 16.12 kB / 413.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004679/0.317, allocations: 164.4 kB / 413.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.3171, allocations: 3.938 kB / 413.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/0.3171, allocations: 3.984 kB / 413.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.3171, allocations: 4 kB / 413.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003681/0.3175, allocations: 107.9 kB / 413.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006817/0.3182, allocations: 412.5 kB / 413.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005852/0.3188, allocations: 194.4 kB / 414 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002896/0.3191, allocations: 92.78 kB / 414.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.3191, allocations: 7.984 kB / 414.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004364/0.3195, allocations: 171.2 kB / 414.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.536e-06/0.3195, allocations: 4 kB / 414.2 MB, free: 12.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001066/0.3206, allocations: 349.3 kB / 414.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.3207, allocations: 55.41 kB / 414.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.3208, allocations: 153.7 kB / 414.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.3208, allocations: 29.7 kB / 414.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.026e-05/0.3209, allocations: 104.5 kB / 414.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.588e-05/0.321, allocations: 43.39 kB / 415 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.274e-05/0.3211, allocations: 45.7 kB / 415 MB, free: 11.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.3212, allocations: 322.8 kB / 415.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.3213, allocations: 51.97 kB / 415.4 MB, free: 11.22 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001736/0.3215, allocations: 112.5 kB / 415.5 MB, free: 11.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002916/0.3218, allocations: 176.4 kB / 415.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3218, allocations: 0 / 415.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004127/0.3223, allocations: 201.3 kB / 415.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/0.3223, allocations: 8 kB / 415.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.3223, allocations: 4.281 kB / 415.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.901e-05/0.3224, allocations: 7.938 kB / 415.9 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002081/0.3226, allocations: 39.86 kB / 415.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.549e-05/0.3226, allocations: 11.97 kB / 415.9 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.3227, allocations: 15.91 kB / 415.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.063e-05/0.3227, allocations: 8 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.0002233/0.323, allocations: 143.4 kB / 416.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.584e-05/0.323, allocations: 11.81 kB / 416.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008436/0.3239, allocations: 282.2 kB / 416.4 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.3239, allocations: 3.938 kB / 416.4 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.3239, allocations: 4 kB / 416.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.3239, allocations: 0 / 416.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/0.3251, allocations: 0.5719 MB / 416.9 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.3252, allocations: 3.938 kB / 416.9 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001171/0.3253, allocations: 19.92 kB / 417 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.3253, allocations: 4 kB / 417 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.7e-05/0.3253, allocations: 8 kB / 417 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3253, allocations: 0 / 417 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.3253, allocations: 0 / 417 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.3265, allocations: 471.2 kB / 417.4 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.491e-05/0.3266, allocations: 88.86 kB / 417.5 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.211e-05/0.3266, allocations: 8 kB / 417.5 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002392/0.3269, allocations: 40 kB / 417.6 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.137e-05/0.3269, allocations: 7.984 kB / 417.6 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.433e-05/0.327, allocations: 8 kB / 417.6 MB, free: 8.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001612/0.3271, allocations: 110.8 kB / 417.7 MB, free: 8.715 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3272, allocations: 0 / 417.7 MB, free: 8.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000475/0.3276, allocations: 28 kB / 417.7 MB, free: 8.688 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.0002249/0.3279, allocations: 111.2 kB / 417.8 MB, free: 8.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000571/0.3285, allocations: 167.7 kB / 418 MB, free: 8.406 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3285, allocations: 0 / 418 MB, free: 8.406 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002888/0.3288, allocations: 96.42 kB / 418.1 MB, free: 8.312 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000282/0.3291, allocations: 15.94 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.001076/0.3301, 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.0004404/0.3306, allocations: 0.7084 MB / 419.1 MB, free: 7.207 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.862e-05/0.3307, allocations: 13.08 kB / 419.2 MB, free: 7.195 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.455e-05/0.3307, allocations: 19.42 kB / 419.2 MB, free: 7.176 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3307, allocations: 0 / 419.2 MB, free: 7.176 MB / 334.1 MB Notification: Performance of Templates: time 0.004741/0.3355, allocations: 1.244 MB / 420.4 MB, free: 5.938 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)