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/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.DemonstrateSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002313/0.002313, allocations: 196.9 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.639/1.639, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000914/0.000914, allocations: 82.83 kB / 292.1 MB, free: 5.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.591e-05/4.594e-05, allocations: 4 kB / 350.6 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1253, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3716/0.4969, allocations: 77.92 MB / 480 MB, free: 11.49 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002106/0.4972, allocations: 61.09 kB / 480.1 MB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00548/0.5027, allocations: 1.992 MB / 482.1 MB, free: 9.773 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.5027, allocations: 0 / 482.1 MB, free: 9.773 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.478e-05/0.5027, allocations: 4 kB / 482.1 MB, free: 9.77 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0004837/0.5032, allocations: 460.9 kB / 482.6 MB, free: 9.281 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.5033, allocations: 16.02 kB / 482.6 MB, free: 9.266 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.503e-05/0.5033, allocations: 41 kB / 482.6 MB, free: 9.223 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002217/0.5036, allocations: 42.81 kB / 482.7 MB, free: 9.184 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001712/0.5038, allocations: 203.1 kB / 482.8 MB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.469e-05/0.5038, allocations: 7.938 kB / 482.9 MB, free: 8.953 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.879e-05/0.5038, allocations: 11.75 kB / 482.9 MB, free: 8.945 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002412/0.5041, allocations: 119.7 kB / 483 MB, free: 8.848 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.5041, allocations: 0 / 483 MB, free: 8.848 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.043e-05/0.5041, allocations: 3.984 kB / 483 MB, free: 8.844 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.5041, allocations: 5.375 kB / 483 MB, free: 8.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001045/0.5042, allocations: 55.03 kB / 483 MB, free: 8.805 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005759/0.5048, allocations: 423 kB / 483.5 MB, free: 8.387 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001827/0.505, allocations: 116.6 kB / 483.6 MB, free: 8.297 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.74e-05/0.5051, allocations: 56.34 kB / 483.6 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.591e-05/0.5051, allocations: 0 / 483.6 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002165/0.5054, allocations: 127.6 kB / 483.8 MB, free: 8.145 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.5054, allocations: 0 / 483.8 MB, free: 8.145 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003372/0.5057, allocations: 176.7 kB / 483.9 MB, free: 8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.5058, allocations: 63.33 kB / 484 MB, free: 7.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.567e-05/0.5059, allocations: 125.2 kB / 484.1 MB, free: 7.805 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.5059, allocations: 37.45 kB / 484.1 MB, free: 7.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.372e-05/0.5059, allocations: 104 kB / 484.3 MB, free: 7.672 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.634e-05/0.506, allocations: 39.28 kB / 484.3 MB, free: 7.641 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.196e-06/0.506, allocations: 7.875 kB / 484.3 MB, free: 7.637 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.542e-05/0.5061, allocations: 322.6 kB / 484.6 MB, free: 7.316 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.022e-05/0.5061, allocations: 38.81 kB / 484.6 MB, free: 7.293 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.659e-05/0.5062, allocations: 99.8 kB / 484.7 MB, free: 7.18 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.219e-05/0.5063, allocations: 50.23 kB / 484.8 MB, free: 7.145 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.5063, allocations: 4 kB / 484.8 MB, free: 7.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002193/0.5065, allocations: 187.5 kB / 485 MB, free: 6.984 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.5066, allocations: 7.953 kB / 485 MB, free: 6.977 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.5066, allocations: 5.688 kB / 485 MB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.5066, allocations: 4 kB / 485 MB, free: 6.969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.5068, allocations: 35.92 kB / 485 MB, free: 6.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.5068, allocations: 4 kB / 485 MB, free: 6.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.797e-05/0.5069, allocations: 28.36 kB / 485.1 MB, free: 6.906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.5069, allocations: 15.69 kB / 485.1 MB, free: 6.895 MB / 346.7 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 ($PRE.signalExtrema2.t_max,signalExtrema2.t_max,$PRE.signalExtrema2.t_min,signalExtrema2.t_min,$PRE.signalExtrema1.t_max,signalExtrema1.t_max,$PRE.signalExtrema1.t_min,signalExtrema1.t_min,$whenCondition2,$whenCondition1,$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) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.736e-05/0.507, allocations: 121.3 kB / 485.2 MB, free: 6.777 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.984e-05/0.507, allocations: 11.91 kB / 485.2 MB, free: 6.766 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002973/0.5073, allocations: 202.6 kB / 485.4 MB, free: 6.605 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.5073, allocations: 0 / 485.4 MB, free: 6.605 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.5073, allocations: 1.25 kB / 485.4 MB, free: 6.605 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.5073, allocations: 0 / 485.4 MB, free: 6.605 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004609/0.5078, allocations: 495.1 kB / 485.9 MB, free: 6.129 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.5078, allocations: 3.953 kB / 485.9 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.508, allocations: 19.92 kB / 485.9 MB, free: 6.105 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.508, allocations: 0 / 485.9 MB, free: 6.105 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.136e-05/0.508, allocations: 7.984 kB / 485.9 MB, free: 6.098 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.508, allocations: 0 / 485.9 MB, free: 6.098 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.508, allocations: 0.6875 kB / 485.9 MB, free: 6.098 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003732/0.5084, allocations: 350.3 kB / 486.3 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.063e-05/0.5084, allocations: 89 kB / 486.4 MB, free: 5.707 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.49e-05/0.5085, allocations: 7.625 kB / 486.4 MB, free: 5.703 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.5087, allocations: 43.83 kB / 486.4 MB, free: 5.664 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/0.5087, allocations: 12.05 kB / 486.4 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.5088, allocations: 8.75 kB / 486.4 MB, free: 5.645 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.607e-05/0.5088, allocations: 109.1 kB / 486.5 MB, free: 5.547 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5088, allocations: 0 / 486.5 MB, free: 5.547 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003066/0.5091, allocations: 39.69 kB / 486.6 MB, free: 5.516 MB / 346.7 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) * 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 (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.0007049/0.5098, allocations: 0.8842 MB / 487.5 MB, free: 4.676 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002528/0.5101, allocations: 111 kB / 487.6 MB, free: 4.594 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.5101, allocations: 0 / 487.6 MB, free: 4.594 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.5102, allocations: 61 kB / 487.6 MB, free: 4.555 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001893/0.5104, allocations: 9.734 kB / 487.6 MB, free: 4.547 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008023/0.5112, allocations: 289.3 kB / 487.9 MB, free: 4.27 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000192/0.5114, allocations: 0.7082 MB / 488.6 MB, free: 3.535 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.813e-05/0.5115, allocations: 15.67 kB / 488.6 MB, free: 3.523 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.857e-05/0.5116, allocations: 38.61 kB / 488.7 MB, free: 3.504 MB / 346.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5116, allocations: 0 / 488.7 MB, free: 3.504 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01425/0.5259, allocations: 2.345 MB / 491 MB, free: 1.363 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002125/0.5261, allocations: 158.1 kB / 491.2 MB, free: 1.137 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.59/2.116, allocations: 0 / 491.2 MB, free: 1.137 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)