Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001275/0.001275, allocations: 118.8 kB / 17.83 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001325/0.001325, allocations: 202 kB / 18.78 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.478/1.478, allocations: 230.4 MB / 250 MB, free: 9.047 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 67.83 kB / 367.3 MB, free: 7.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3124/0.3143, allocations: 53.32 MB / 420.6 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003041/0.3174, allocations: 1.734 MB / 422.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.3186, allocations: 0.6739 MB / 423.1 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.774e-05/0.3187, allocations: 4 kB / 423.1 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.3188, allocations: 15.81 kB / 423.1 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.335e-05/0.3189, allocations: 19.78 kB / 423.1 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003493/0.3192, allocations: 87.72 kB / 423.2 MB, free: 5.801 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002233/0.3195, allocations: 147.6 kB / 423.3 MB, free: 5.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.3196, allocations: 21.44 kB / 423.3 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.3198, allocations: 67.77 kB / 423.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/0.3199, allocations: 71.67 kB / 423.5 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.683e-05/0.3199, allocations: 12 kB / 423.5 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.504e-05/0.32, allocations: 24 kB / 423.5 MB, free: 5.461 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.127e-05/0.32, allocations: 39.89 kB / 423.6 MB, free: 5.422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.086e-05/0.3201, allocations: 55.72 kB / 423.6 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002316/0.3203, allocations: 139.4 kB / 423.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3203, allocations: 0 / 423.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3203, allocations: 4 kB / 423.8 MB, free: 5.227 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.3203, allocations: 0 / 423.8 MB, free: 5.227 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.0007528/0.3211, allocations: 493.2 kB / 424.2 MB, free: 4.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.3211, allocations: 8.031 kB / 424.2 MB, free: 4.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002361/0.3214, allocations: 36.83 kB / 424.3 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003048/0.3217, allocations: 220.7 kB / 424.5 MB, free: 4.391 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.313e-05/0.3217, allocations: 8.375 kB / 424.5 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/0.3217, allocations: 16.12 kB / 424.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004389/0.3222, allocations: 168.2 kB / 424.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.3222, allocations: 0 / 424.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.965e-05/0.3222, allocations: 4 kB / 424.7 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.3222, allocations: 4 kB / 424.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003317/0.3225, allocations: 99.84 kB / 424.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006848/0.3232, allocations: 424.4 kB / 425.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005562/0.3238, allocations: 190.4 kB / 425.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002604/0.324, allocations: 88.77 kB / 425.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.3241, allocations: 8 kB / 425.5 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004121/0.3245, allocations: 175.2 kB / 425.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.492e-06/0.3245, allocations: 0 / 425.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001015/0.3255, allocations: 349.2 kB / 426 MB, free: 2.805 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.3255, allocations: 55.41 kB / 426 MB, free: 2.738 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001405/0.3257, allocations: 155.2 kB / 426.2 MB, free: 2.578 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.3257, allocations: 29.7 kB / 426.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.035e-05/0.3258, allocations: 108.5 kB / 426.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.899e-05/0.3258, allocations: 43.69 kB / 426.4 MB, free: 2.391 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.339e-05/0.3259, allocations: 45.7 kB / 426.4 MB, free: 2.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.326, allocations: 322.8 kB / 426.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.3262, allocations: 43.97 kB / 426.8 MB, free: 1.973 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.3263, allocations: 120.5 kB / 426.9 MB, free: 1.824 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002838/0.3266, allocations: 168.4 kB / 427.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.3266, allocations: 0 / 427.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003826/0.327, allocations: 213.2 kB / 427.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.327, allocations: 8 kB / 427.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.327, allocations: 0 / 427.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.3271, allocations: 7.938 kB / 427.3 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.3272, allocations: 39.91 kB / 427.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.647e-06/0.3272, allocations: 4 kB / 427.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.466e-05/0.3273, allocations: 15.89 kB / 427.3 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.3273, allocations: 12.25 kB / 427.4 MB, free: 1.328 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.0001199/0.3275, allocations: 139.5 kB / 427.5 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.765e-05/0.3275, allocations: 11.91 kB / 427.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007167/0.3282, allocations: 281.5 kB / 427.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3282, allocations: 3.938 kB / 427.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3282, allocations: 3.938 kB / 427.8 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3282, allocations: 0 / 427.8 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/0.3292, allocations: 0.5686 MB / 428.4 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3292, allocations: 3.938 kB / 428.4 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.3293, allocations: 15.98 kB / 428.4 MB, free: 244 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3293, allocations: 0 / 428.4 MB, free: 244 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.3294, allocations: 8 kB / 428.4 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.3294, allocations: 3.984 kB / 428.4 MB, free: 232 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3294, allocations: 3.938 kB / 428.4 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.3304, allocations: 467.3 kB / 428.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.367e-05/0.3304, allocations: 92.98 kB / 428.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.102e-05/0.3305, allocations: 8 kB / 428.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.3307, allocations: 31.95 kB / 429 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.521e-05/0.3307, allocations: 7.984 kB / 429 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.3307, allocations: 8 kB / 429 MB, free: 15.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.48e-05/0.3308, allocations: 108.4 kB / 429.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3308, allocations: 0 / 429.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002791/0.3311, allocations: 32.06 kB / 429.1 MB, free: 15.45 MB / 350.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.0001288/0.3312, allocations: 117.8 kB / 429.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000446/0.3317, allocations: 159.7 kB / 429.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3317, allocations: 0.5625 kB / 429.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002386/0.3319, allocations: 91.16 kB / 429.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002435/0.3321, allocations: 11.94 kB / 429.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007654/0.3329, allocations: 340.3 kB / 429.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.3333, allocations: 0.7084 MB / 430.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.277e-05/0.3333, allocations: 25 kB / 430.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.003e-05/0.3334, allocations: 15.44 kB / 430.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3334, allocations: 0 / 430.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of Templates: time 0.004097/0.3375, allocations: 1.256 MB / 431.8 MB, free: 12.69 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)