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.001367/0.001367, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 225.4 MB / 240.1 MB, free: 15.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009829/0.0009831, allocations: 84.64 kB / 292.1 MB, free: 6.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.935e-05/3.942e-05, allocations: 4 kB / 350.6 MB, free: 2.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1162, allocations: 51.48 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3757/0.4919, allocations: 78.52 MB / 480.6 MB, free: 10.81 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001862/0.4922, allocations: 58.03 kB / 480.7 MB, free: 10.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01134/0.5035, allocations: 3.899 MB / 484.6 MB, free: 7.418 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.5036, allocations: 4 kB / 484.6 MB, free: 7.414 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.5036, allocations: 4 kB / 484.6 MB, free: 7.41 MB / 346.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.001195/0.5048, allocations: 0.7104 MB / 485.3 MB, free: 6.668 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.5049, allocations: 8.031 kB / 485.3 MB, free: 6.66 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.257e-05/0.5049, allocations: 49.92 kB / 485.4 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003054/0.5052, allocations: 63.67 kB / 485.4 MB, free: 6.547 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.5054, allocations: 203.5 kB / 485.6 MB, free: 6.309 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.5054, allocations: 23.11 kB / 485.6 MB, free: 6.297 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.126e-05/0.5055, allocations: 27.3 kB / 485.7 MB, free: 6.277 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004247/0.5059, allocations: 290.1 kB / 486 MB, free: 6.055 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.5059, allocations: 0 / 486 MB, free: 6.055 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.184e-05/0.506, allocations: 14.61 kB / 486 MB, free: 6.047 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.506, allocations: 4 kB / 486 MB, free: 6.043 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000256/0.5062, allocations: 140.7 kB / 486.1 MB, free: 5.957 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001185/0.5074, allocations: 0.7625 MB / 486.9 MB, free: 5.246 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003481/0.5078, allocations: 273.3 kB / 487.1 MB, free: 5.055 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.508, allocations: 138.1 kB / 487.3 MB, free: 4.965 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.508, allocations: 4 kB / 487.3 MB, free: 4.961 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004559/0.5085, allocations: 320.3 kB / 487.6 MB, free: 4.703 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 2.004e-06/0.5085, allocations: 0 / 487.6 MB, free: 4.703 MB / 346.7 MB Notification: Performance of matching and sorting (n=41): time 0.0006465/0.5092, allocations: 446.1 kB / 488 MB, free: 4.359 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.997e-05/0.5092, allocations: 71.59 kB / 488.1 MB, free: 4.281 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.5093, allocations: 167.1 kB / 488.3 MB, free: 4.133 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.056e-05/0.5094, allocations: 52.56 kB / 488.3 MB, free: 4.086 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.37e-05/0.5095, allocations: 126.7 kB / 488.4 MB, free: 3.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.272e-05/0.5095, allocations: 108.3 kB / 488.5 MB, free: 3.891 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.01e-05/0.5096, allocations: 11.25 kB / 488.6 MB, free: 3.887 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.958e-05/0.5096, allocations: 345 kB / 488.9 MB, free: 3.555 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/0.5098, allocations: 108.9 kB / 489 MB, free: 3.488 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002131/0.5101, allocations: 195.1 kB / 489.2 MB, free: 3.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002401/0.5103, allocations: 203.8 kB / 489.4 MB, free: 3.141 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.5103, allocations: 4 kB / 489.4 MB, free: 3.137 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0006375/0.511, allocations: 486.7 kB / 489.9 MB, free: 2.734 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.82e-05/0.511, allocations: 91.44 kB / 490 MB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.511, allocations: 4 kB / 490 MB, free: 2.625 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.773e-05/0.5111, allocations: 4 kB / 490 MB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003591/0.5114, allocations: 95.34 kB / 490.1 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.5115, allocations: 4 kB / 490.1 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003584/0.5118, allocations: 74.33 kB / 490.1 MB, free: 2.465 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.858e-05/0.5119, allocations: 23.75 kB / 490.2 MB, free: 2.445 MB / 346.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 () * 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.0001392/0.512, allocations: 150.8 kB / 490.3 MB, free: 2.305 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.525e-05/0.5121, allocations: 23.72 kB / 490.3 MB, free: 2.281 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.519e-05/0.5122, allocations: 41.77 kB / 490.4 MB, free: 2.266 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.5122, allocations: 4 kB / 490.4 MB, free: 2.262 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.5122, allocations: 0 / 490.4 MB, free: 2.262 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.5122, allocations: 6.547 kB / 490.4 MB, free: 2.258 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000268/0.5125, allocations: 336.5 kB / 490.7 MB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.5125, allocations: 4 kB / 490.7 MB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002696/0.5128, allocations: 55.52 kB / 490.8 MB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.5128, allocations: 0 / 490.8 MB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.78e-05/0.5128, allocations: 15.03 kB / 490.8 MB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.5128, allocations: 5.25 kB / 490.8 MB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.5128, allocations: 3.938 kB / 490.8 MB, free: 1.855 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000848/0.5137, allocations: 0.6462 MB / 491.4 MB, free: 1.379 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.574e-05/0.5138, allocations: 108.7 kB / 491.5 MB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.275e-05/0.5138, allocations: 15 kB / 491.6 MB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003495/0.5142, allocations: 75.34 kB / 491.6 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.5143, allocations: 56.47 kB / 491.7 MB, free: 1.129 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.28e-05/0.5144, allocations: 25.58 kB / 491.7 MB, free: 1.105 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.07e-05/0.5145, allocations: 128.5 kB / 491.8 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5145, allocations: 0 / 491.8 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003594/0.5148, allocations: 88.19 kB / 491.9 MB, free: 0.8945 MB / 346.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) * 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.001269/0.5161, allocations: 1.224 MB / 493.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007174/0.5168, allocations: 0.4958 MB / 493.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5169, allocations: 0 / 493.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003142/0.5172, allocations: 196.4 kB / 493.8 MB, free: 14.92 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002759/0.5175, allocations: 36.16 kB / 493.9 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.5186, allocations: 464.4 kB / 494.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.5189, allocations: 0.7646 MB / 495.1 MB, free: 13.6 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001611/0.5191, allocations: 38.17 kB / 495.1 MB, free: 13.56 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/0.5193, allocations: 83.41 kB / 495.2 MB, free: 13.48 MB / 362.7 MB Notification: Performance of SimCode: time 5.91e-07/0.5193, allocations: 0 / 495.2 MB, free: 13.48 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02047/0.5397, allocations: 5.751 MB / 0.4892 GB, free: 7.984 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.54, allocations: 177.5 kB / 0.4894 GB, free: 7.75 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.976/2.516, allocations: 0 / 0.4894 GB, free: 7.75 MB / 362.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)