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.001225/0.001225, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001409/0.001409, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3156, allocations: 50.55 MB / 409.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003284/0.3189, allocations: 1.725 MB / 411 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.3202, allocations: 0.6661 MB / 411.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.968e-05/0.3203, allocations: 0 / 411.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.3205, allocations: 15.8 kB / 411.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.594e-05/0.3205, allocations: 19.81 kB / 411.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003118/0.3209, allocations: 91.75 kB / 411.8 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001922/0.3211, allocations: 147.6 kB / 411.9 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.3212, allocations: 25.44 kB / 411.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001586/0.3214, allocations: 75.77 kB / 412 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.3215, allocations: 67.67 kB / 412.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.552e-05/0.3215, allocations: 16 kB / 412.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.381e-05/0.3216, allocations: 16 kB / 412.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.594e-05/0.3216, allocations: 35.89 kB / 412.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.436e-05/0.3217, allocations: 59.73 kB / 412.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002023/0.3219, allocations: 143.4 kB / 412.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3219, allocations: 0 / 412.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.3219, allocations: 3.938 kB / 412.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.3219, allocations: 0 / 412.3 MB, free: 14.5 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.000695/0.3226, allocations: 490.3 kB / 412.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.3227, allocations: 12.03 kB / 412.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002318/0.3229, allocations: 32.81 kB / 412.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000309/0.3232, allocations: 224 kB / 413.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.709e-05/0.3233, allocations: 12.36 kB / 413.1 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.885e-05/0.3233, allocations: 16.12 kB / 413.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004351/0.3238, allocations: 163.7 kB / 413.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.3238, allocations: 0 / 413.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.3238, allocations: 4 kB / 413.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.3238, allocations: 4 kB / 413.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003508/0.3242, allocations: 107.8 kB / 413.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006679/0.3249, allocations: 420.4 kB / 413.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00055/0.3254, allocations: 202.4 kB / 414 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002621/0.3257, allocations: 88.78 kB / 414.1 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.3257, allocations: 4 kB / 414.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003952/0.3261, allocations: 171.2 kB / 414.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.432e-06/0.3261, allocations: 0 / 414.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009652/0.3271, allocations: 341.3 kB / 414.6 MB, free: 12.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/0.3272, allocations: 71.31 kB / 414.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.3273, allocations: 149.7 kB / 414.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.969e-05/0.3273, allocations: 33.7 kB / 414.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.484e-05/0.3274, allocations: 108.5 kB / 414.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.922e-05/0.3274, allocations: 35.69 kB / 415 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.5e-05/0.3275, allocations: 45.7 kB / 415 MB, free: 11.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.3276, allocations: 330.8 kB / 415.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/0.3278, allocations: 47.97 kB / 415.4 MB, free: 11.22 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.3279, allocations: 112.5 kB / 415.5 MB, free: 11.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002625/0.3282, allocations: 172.4 kB / 415.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3282, allocations: 0 / 415.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003331/0.3285, allocations: 205.2 kB / 415.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.3286, allocations: 11.98 kB / 415.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.3286, allocations: 0 / 415.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.3286, allocations: 7.938 kB / 415.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/0.3288, allocations: 39.92 kB / 415.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.485e-06/0.3288, allocations: 4.281 kB / 415.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.985e-05/0.3289, allocations: 27.88 kB / 415.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.3289, allocations: 4 kB / 416 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 9.989e-05/0.329, allocations: 139.4 kB / 416.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.425e-05/0.329, allocations: 11.91 kB / 416.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007077/0.3298, allocations: 281.5 kB / 416.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3298, allocations: 3.938 kB / 416.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.126e-06/0.3298, allocations: 3.984 kB / 416.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3298, allocations: 0 / 416.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008767/0.3307, allocations: 0.5685 MB / 417 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.3307, allocations: 3.938 kB / 417 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.679e-05/0.3308, allocations: 19.98 kB / 417 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3308, allocations: 0 / 417 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.3308, allocations: 7.984 kB / 417 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3308, allocations: 4 kB / 417 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3308, allocations: 4 kB / 417 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009666/0.3318, allocations: 471.1 kB / 417.4 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.728e-05/0.3319, allocations: 92.98 kB / 417.5 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.939e-05/0.3319, allocations: 11.98 kB / 417.6 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001805/0.3321, allocations: 23.97 kB / 417.6 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.906e-05/0.3322, allocations: 15.97 kB / 417.6 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.3322, allocations: 7.984 kB / 417.6 MB, free: 8.828 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.133e-05/0.3323, allocations: 110.9 kB / 417.7 MB, free: 8.723 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3323, allocations: 0 / 417.7 MB, free: 8.723 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002686/0.3325, allocations: 31.98 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.0001375/0.3327, allocations: 107.2 kB / 417.8 MB, free: 8.578 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004341/0.3331, allocations: 171.6 kB / 418 MB, free: 8.41 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3331, allocations: 0 / 418 MB, free: 8.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000242/0.3334, allocations: 91.94 kB / 418.1 MB, free: 8.32 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002327/0.3336, allocations: 19.48 kB / 418.1 MB, free: 8.305 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007351/0.3344, allocations: 332.9 kB / 418.4 MB, free: 7.953 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002671/0.3346, allocations: 0.7123 MB / 419.2 MB, free: 7.215 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.547e-05/0.3347, allocations: 9.078 kB / 419.2 MB, free: 7.207 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.042e-05/0.3347, allocations: 15.44 kB / 419.2 MB, free: 7.191 MB / 334.1 MB Notification: Performance of SimCode: time 2e-07/0.3348, allocations: 0 / 419.2 MB, free: 7.191 MB / 334.1 MB Notification: Performance of Templates: time 0.004324/0.3391, allocations: 1.254 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)