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.00108/0.00108, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001307/0.001307, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001165, allocations: 59.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3082, allocations: 50.53 MB / 409.2 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.002995/0.3113, allocations: 2.037 MB / 411.3 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.3125, allocations: 0.7363 MB / 412 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.057e-05/0.3126, allocations: 3.938 kB / 412 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.523e-05/0.3127, allocations: 23.67 kB / 412 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001374/0.3128, allocations: 55.47 kB / 412.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004162/0.3132, allocations: 147.7 kB / 412.2 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003511/0.3136, allocations: 351.2 kB / 412.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.3138, allocations: 64.72 kB / 412.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002349/0.314, allocations: 147.6 kB / 412.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001866/0.3142, allocations: 167.4 kB / 412.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.676e-05/0.3142, allocations: 32 kB / 413 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.293e-05/0.3143, allocations: 36 kB / 413 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.779e-05/0.3144, allocations: 79.66 kB / 413.1 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.3145, allocations: 135.4 kB / 413.2 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003115/0.3149, allocations: 302.8 kB / 413.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3149, allocations: 0 / 413.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.3149, allocations: 4 kB / 413.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.3149, allocations: 0 / 413.5 MB, free: 13.44 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.001386/0.3163, allocations: 0.7466 MB / 414.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.3163, allocations: 12.03 kB / 414.3 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003302/0.3167, allocations: 60.72 kB / 414.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003409/0.317, allocations: 268.8 kB / 414.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.924e-05/0.3171, allocations: 24.36 kB / 414.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.042e-05/0.3171, allocations: 28.38 kB / 414.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008033/0.3179, allocations: 359.1 kB / 415 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.3179, allocations: 0 / 415 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.669e-05/0.318, allocations: 11.98 kB / 415 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.318, allocations: 4 kB / 415 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000764/0.3188, allocations: 247.7 kB / 415.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.3198, allocations: 0.7111 MB / 416 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008339/0.3207, allocations: 360.9 kB / 416.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004981/0.3212, allocations: 204.5 kB / 416.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.501e-05/0.3212, allocations: 4 kB / 416.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007946/0.322, allocations: 402.7 kB / 416.9 MB, free: 9.828 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.034e-06/0.322, allocations: 0 / 416.9 MB, free: 9.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.00186/0.3239, allocations: 0.7465 MB / 417.7 MB, free: 9.074 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.324, allocations: 71.39 kB / 417.7 MB, free: 8.992 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.3241, allocations: 195.8 kB / 417.9 MB, free: 8.793 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.42e-05/0.3242, allocations: 49.69 kB / 418 MB, free: 8.738 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.918e-05/0.3243, allocations: 129 kB / 418.1 MB, free: 8.609 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.31e-05/0.3244, allocations: 119.1 kB / 418.2 MB, free: 8.492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.3245, allocations: 86.25 kB / 418.3 MB, free: 8.402 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3246, allocations: 346.8 kB / 418.6 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004002/0.325, allocations: 164.9 kB / 418.8 MB, free: 7.891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004445/0.3255, allocations: 237.2 kB / 419 MB, free: 7.633 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008171/0.3263, allocations: 440.6 kB / 419.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3263, allocations: 0 / 419.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001093/0.3274, allocations: 0.5737 MB / 420 MB, free: 6.559 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.941e-05/0.3275, allocations: 89.09 kB / 420.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.3275, allocations: 0 / 420.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.3276, allocations: 8 kB / 420.1 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003447/0.3279, allocations: 79.81 kB / 420.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.3279, allocations: 4 kB / 420.2 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003099/0.3283, allocations: 67.92 kB / 420.3 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.944e-05/0.3283, allocations: 20 kB / 420.3 MB, free: 6.277 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.0001793/0.3285, allocations: 173.6 kB / 420.5 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.887e-05/0.3285, allocations: 23.86 kB / 420.5 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.247e-05/0.3286, allocations: 34.98 kB / 420.5 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.3287, allocations: 8 kB / 420.5 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.3287, allocations: 0 / 420.5 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.3287, allocations: 3.984 kB / 420.5 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003427/0.329, allocations: 353.1 kB / 420.9 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.329, allocations: 0 / 420.9 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002569/0.3293, allocations: 43.95 kB / 420.9 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.3293, allocations: 0 / 420.9 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.912e-05/0.3294, allocations: 19.97 kB / 420.9 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.3294, allocations: 8 kB / 421 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3294, allocations: 0 / 421 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001827/0.3312, allocations: 0.8564 MB / 421.8 MB, free: 4.688 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.651e-05/0.3313, allocations: 104.9 kB / 421.9 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.445e-05/0.3314, allocations: 16 kB / 421.9 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003293/0.3317, allocations: 59.92 kB / 422 MB, free: 4.492 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.3318, allocations: 47.94 kB / 422 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.368e-05/0.3319, allocations: 31.97 kB / 422.1 MB, free: 4.414 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001192/0.332, allocations: 136.2 kB / 422.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.332, allocations: 0 / 422.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003213/0.3324, allocations: 83.95 kB / 422.3 MB, free: 4.199 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.0001672/0.3325, allocations: 127.7 kB / 422.4 MB, free: 4.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001215/0.3338, allocations: 0.6067 MB / 423 MB, free: 3.43 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3338, allocations: 8 kB / 423 MB, free: 3.422 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006146/0.3344, allocations: 271.5 kB / 423.3 MB, free: 3.156 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.3347, allocations: 36.05 kB / 423.3 MB, free: 3.121 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.3359, allocations: 0.5505 MB / 423.9 MB, free: 2.539 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003553/0.3363, allocations: 0.7566 MB / 424.6 MB, free: 1.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001378/0.3365, allocations: 34.95 kB / 424.7 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.273e-05/0.3366, allocations: 35.42 kB / 424.7 MB, free: 1.684 MB / 334.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3366, allocations: 0 / 424.7 MB, free: 1.684 MB / 334.1 MB Notification: Performance of Templates: time 0.008095/0.3447, allocations: 4.292 MB / 429 MB, free: 13.39 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)