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.001257/0.001257, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001388/0.001388, allocations: 204.7 kB / 18.74 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 55.91 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3275, allocations: 50.55 MB / 409.2 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.002947/0.3305, allocations: 2.026 MB / 411.3 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001156/0.3316, allocations: 0.7324 MB / 412 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.3318, allocations: 7.938 kB / 412 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.58e-05/0.3318, allocations: 23.67 kB / 412 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.332, allocations: 51.52 kB / 412.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004158/0.3324, allocations: 147.7 kB / 412.2 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003593/0.3328, allocations: 355.1 kB / 412.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.333, allocations: 60.78 kB / 412.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002603/0.3332, allocations: 155.5 kB / 412.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001873/0.3334, allocations: 163.4 kB / 413 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.793e-05/0.3335, allocations: 28 kB / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.69e-05/0.3336, allocations: 32 kB / 413 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.705e-05/0.3336, allocations: 83.72 kB / 413.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001299/0.3338, allocations: 139.3 kB / 413.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003036/0.3341, allocations: 302.6 kB / 413.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3341, allocations: 3.938 kB / 413.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3341, allocations: 0 / 413.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.3341, allocations: 0 / 413.5 MB, free: 13.24 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.001487/0.3356, allocations: 0.7443 MB / 414.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.3357, allocations: 8.031 kB / 414.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003575/0.336, allocations: 56.62 kB / 414.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003331/0.3364, allocations: 268.7 kB / 414.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.586e-05/0.3364, allocations: 20.38 kB / 414.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.245e-05/0.3365, allocations: 32.36 kB / 414.6 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008454/0.3373, allocations: 359.1 kB / 415 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.3374, allocations: 0 / 415 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.929e-05/0.3374, allocations: 11.98 kB / 415 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.3374, allocations: 4 kB / 415 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008106/0.3382, allocations: 243.8 kB / 415.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.3393, allocations: 0.6993 MB / 416 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009921/0.3403, allocations: 364.9 kB / 416.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005382/0.3408, allocations: 205.1 kB / 416.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.621e-05/0.3409, allocations: 7.984 kB / 416.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008636/0.3418, allocations: 394.9 kB / 416.9 MB, free: 9.656 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 4.088e-06/0.3418, allocations: 3.984 kB / 416.9 MB, free: 9.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.001981/0.3438, allocations: 0.7502 MB / 417.7 MB, free: 8.895 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.704e-05/0.3438, allocations: 63.41 kB / 417.7 MB, free: 8.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/0.3441, allocations: 199.7 kB / 417.9 MB, free: 8.617 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.317e-05/0.3441, allocations: 45.7 kB / 418 MB, free: 8.566 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001287/0.3443, allocations: 136.9 kB / 418.1 MB, free: 8.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.3444, allocations: 118.5 kB / 418.2 MB, free: 8.312 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/0.3445, allocations: 86.25 kB / 418.3 MB, free: 8.223 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.3447, allocations: 350.7 kB / 418.6 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004343/0.3452, allocations: 153 kB / 418.8 MB, free: 7.719 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004925/0.3457, allocations: 237.2 kB / 419 MB, free: 7.461 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009081/0.3466, allocations: 444.6 kB / 419.4 MB, free: 6.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3466, allocations: 0 / 419.4 MB, free: 6.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001146/0.3477, allocations: 0.5659 MB / 420 MB, free: 6.391 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.309e-05/0.3478, allocations: 93.09 kB / 420.1 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.3478, allocations: 0 / 420.1 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.158e-05/0.3479, allocations: 4 kB / 420.1 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003654/0.3482, allocations: 83.81 kB / 420.2 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.3483, allocations: 4 kB / 420.2 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003375/0.3486, allocations: 67.64 kB / 420.3 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.529e-05/0.3487, allocations: 16 kB / 420.3 MB, free: 6.109 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.0001791/0.3488, allocations: 177.6 kB / 420.5 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.724e-05/0.3489, allocations: 23.72 kB / 420.5 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.396e-05/0.349, allocations: 34.98 kB / 420.5 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.349, allocations: 4 kB / 420.5 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.349, allocations: 0 / 420.5 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.349, allocations: 3.984 kB / 420.5 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003291/0.3494, allocations: 357.1 kB / 420.9 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3494, allocations: 0 / 420.9 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002773/0.3497, allocations: 43.89 kB / 420.9 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.3497, allocations: 4 kB / 420.9 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.701e-05/0.3497, allocations: 15.97 kB / 420.9 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.3497, allocations: 4 kB / 420.9 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3497, allocations: 0 / 420.9 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001984/0.3517, allocations: 0.8563 MB / 421.8 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.071e-05/0.3518, allocations: 104.9 kB / 421.9 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.119e-05/0.3519, allocations: 16 kB / 421.9 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/0.3522, allocations: 59.91 kB / 422 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.3524, allocations: 55.88 kB / 422 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.712e-05/0.3524, allocations: 27.97 kB / 422 MB, free: 4.242 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.353e-05/0.3525, allocations: 132.2 kB / 422.2 MB, free: 4.113 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3525, allocations: 0 / 422.2 MB, free: 4.113 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003042/0.3528, allocations: 87.89 kB / 422.3 MB, free: 4.027 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.0001493/0.353, allocations: 123.7 kB / 422.4 MB, free: 3.902 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.3542, allocations: 0.608 MB / 423 MB, free: 3.258 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3542, allocations: 0 / 423 MB, free: 3.258 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006069/0.3548, allocations: 267.9 kB / 423.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.3551, allocations: 38.16 kB / 423.3 MB, free: 2.961 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001118/0.3563, allocations: 0.543 MB / 423.8 MB, free: 2.387 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.3566, allocations: 0.7527 MB / 424.6 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001325/0.3567, allocations: 42.88 kB / 424.6 MB, free: 1.562 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.301e-05/0.3568, allocations: 31.42 kB / 424.7 MB, free: 1.531 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3568, allocations: 3.938 kB / 424.7 MB, free: 1.527 MB / 334.1 MB Notification: Performance of Templates: time 0.008511/0.3653, allocations: 4.302 MB / 429 MB, free: 13.23 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)