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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001069/0.001069, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.22/1.22, allocations: 227.2 MB / 245 MB, free: 5.766 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009025/0.0009024, allocations: 97.09 kB / 297.3 MB, free: 5.953 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002233/0.0002233, allocations: 8 kB / 358 MB, free: 9.215 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2077, allocations: 51.49 MB / 409.5 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08324/0.291, allocations: 78.58 MB / 488.1 MB, free: 12 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/0.2913, allocations: 63.97 kB / 488.1 MB, free: 11.94 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01164/0.3029, allocations: 3.915 MB / 492.1 MB, free: 8.023 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3029, allocations: 0 / 492.1 MB, free: 8.023 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.303, allocations: 7.938 kB / 492.1 MB, free: 8.016 MB / 362.7 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.001215/0.3042, allocations: 0.7333 MB / 492.8 MB, free: 7.211 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.3042, allocations: 8.031 kB / 492.8 MB, free: 7.203 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.631e-05/0.3043, allocations: 54.53 kB / 492.9 MB, free: 7.141 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002882/0.3046, allocations: 63.69 kB / 492.9 MB, free: 7.078 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.3047, allocations: 202.5 kB / 493.1 MB, free: 6.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.56e-05/0.3048, allocations: 20 kB / 493.1 MB, free: 6.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.738e-05/0.3048, allocations: 31.89 kB / 493.2 MB, free: 6.789 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007806/0.3056, allocations: 386.9 kB / 493.5 MB, free: 6.398 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.3057, allocations: 0 / 493.5 MB, free: 6.398 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.3057, allocations: 15.98 kB / 493.6 MB, free: 6.383 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.3057, allocations: 4 kB / 493.6 MB, free: 6.379 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007583/0.3065, allocations: 287.8 kB / 493.8 MB, free: 6.098 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.3077, allocations: 0.7734 MB / 494.6 MB, free: 5.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008257/0.3085, allocations: 400.9 kB / 495 MB, free: 4.859 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.3086, allocations: 4 kB / 495 MB, free: 4.855 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008277/0.3094, allocations: 419.3 kB / 495.4 MB, free: 4.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.974e-06/0.3094, allocations: 4 kB / 495.4 MB, free: 4.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.001779/0.3112, allocations: 0.8283 MB / 496.3 MB, free: 3.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.3113, allocations: 71.41 kB / 496.3 MB, free: 3.508 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.3114, allocations: 170.2 kB / 496.5 MB, free: 3.332 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.482e-05/0.3114, allocations: 41.7 kB / 496.5 MB, free: 3.285 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.363e-05/0.3115, allocations: 132.9 kB / 496.7 MB, free: 3.148 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.868e-05/0.3116, allocations: 106.6 kB / 496.8 MB, free: 3.043 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.051e-05/0.3116, allocations: 8 kB / 496.8 MB, free: 3.035 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.3117, allocations: 346.8 kB / 497.1 MB, free: 2.688 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003949/0.3121, allocations: 173 kB / 497.3 MB, free: 2.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000423/0.3126, allocations: 249.4 kB / 497.5 MB, free: 2.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004266/0.313, allocations: 261.9 kB / 497.8 MB, free: 1.977 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.313, allocations: 4 kB / 497.8 MB, free: 1.973 MB / 362.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001045/0.3141, allocations: 0.5909 MB / 498.4 MB, free: 1.359 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.559e-05/0.3141, allocations: 93.09 kB / 498.5 MB, free: 1.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.3142, allocations: 0 / 498.5 MB, free: 1.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.3142, allocations: 4 kB / 498.5 MB, free: 1.246 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003555/0.3145, allocations: 83.88 kB / 498.6 MB, free: 1.164 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/0.3146, allocations: 11.88 kB / 498.6 MB, free: 1.152 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000339/0.3149, allocations: 83.64 kB / 498.6 MB, free: 1.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.3149, allocations: 19.98 kB / 498.7 MB, free: 1.051 MB / 362.7 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 ($PRE.signalExtrema3.t_min,signalExtrema3.t_min,$PRE.signalExtrema3.t_max,signalExtrema3.t_max,$PRE.signalExtrema2.t_min,signalExtrema2.t_min,$PRE.signalExtrema2.t_max,signalExtrema2.t_max,$PRE.signalExtrema1.t_min,signalExtrema1.t_min,$PRE.signalExtrema1.t_max,signalExtrema1.t_max,$whenCondition5,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$PRE.sawTooth.T_start,sawTooth.T_start,$PRE.sawTooth.count,sawTooth.count,$PRE.signalExtrema1.y_min,signalExtrema1.y_min,$PRE.signalExtrema1.y_max,signalExtrema1.y_max,$PRE.signalExtrema2.y_min,signalExtrema2.y_min,$PRE.signalExtrema2.y_max,signalExtrema2.y_max,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$PRE.sawTooth1.T_start,sawTooth1.T_start,$PRE.sawTooth1.count,sawTooth1.count,$PRE.signalExtrema3.y_min,signalExtrema3.y_min,$PRE.signalExtrema3.y_max,signalExtrema3.y_max) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001479/0.3151, allocations: 165.7 kB / 498.8 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.238e-05/0.3151, allocations: 27.7 kB / 498.9 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.81e-05/0.3152, allocations: 38.94 kB / 498.9 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.3152, allocations: 8 kB / 498.9 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3153, allocations: 0 / 498.9 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.3153, allocations: 3.984 kB / 498.9 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002924/0.3156, allocations: 349.2 kB / 499.2 MB, free: 424 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3156, allocations: 0 / 499.2 MB, free: 424 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002805/0.3159, allocations: 55.95 kB / 499.3 MB, free: 368 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3159, allocations: 0 / 499.3 MB, free: 368 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.738e-05/0.3159, allocations: 11.98 kB / 499.3 MB, free: 356 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.3159, allocations: 4 kB / 499.3 MB, free: 352 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.3159, allocations: 0 / 499.3 MB, free: 352 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.3178, allocations: 0.9387 MB / 0.4885 GB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.685e-05/0.3178, allocations: 104.7 kB / 0.4886 GB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.381e-05/0.3179, allocations: 12 kB / 0.4886 GB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003606/0.3183, allocations: 83.91 kB / 0.4887 GB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.3184, allocations: 51.91 kB / 0.4888 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.137e-05/0.3185, allocations: 23.98 kB / 0.4888 GB, free: 15.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.457e-05/0.3185, allocations: 131.2 kB / 0.4889 GB, free: 14.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3185, allocations: 0 / 0.4889 GB, free: 14.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003037/0.3189, allocations: 88.19 kB / 0.489 GB, free: 14.88 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002067/0.3209, allocations: 1.504 MB / 0.4905 GB, free: 13.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.322, allocations: 0.6466 MB / 0.4911 GB, free: 12.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.322, allocations: 0 / 0.4911 GB, free: 12.67 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005694/0.3226, allocations: 295.7 kB / 0.4914 GB, free: 12.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002322/0.3229, allocations: 30.41 kB / 0.4914 GB, free: 12.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003192/0.3261, allocations: 3.098 MB / 0.4944 GB, free: 9.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002437/0.3263, allocations: 0.7646 MB / 0.4952 GB, free: 8.371 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001418/0.3265, allocations: 34.2 kB / 0.4952 GB, free: 8.336 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.3266, allocations: 83.47 kB / 0.4953 GB, free: 8.254 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3266, allocations: 4 kB / 0.4953 GB, free: 8.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01511/0.3417, allocations: 5.704 MB / 0.5009 GB, free: 2.699 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001725/0.3419, allocations: 186.5 kB / 0.5011 GB, free: 2.461 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.94/2.282, allocations: 6.953 kB / 0.5011 GB, free: 2.457 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1)