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.001021/0.001021, allocations: 202.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.534/1.534, allocations: 225.6 MB / 234.8 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008615/0.0008615, allocations: 96.55 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.987e-05/1.989e-05, allocations: 4 kB / 343.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1175, allocations: 51.48 MB / 395.3 MB, free: 4.652 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3769/0.4944, allocations: 77.26 MB / 472.5 MB, free: 13.95 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/0.4948, allocations: 63.72 kB / 472.6 MB, free: 13.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006037/0.5008, allocations: 1.978 MB / 474.6 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5009, allocations: 0 / 474.6 MB, free: 12.72 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.5009, allocations: 0 / 474.6 MB, free: 12.72 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.0005619/0.5014, allocations: 468.9 kB / 475 MB, free: 12.24 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.983e-05/0.5015, allocations: 8.031 kB / 475 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002361/0.5018, allocations: 40.36 kB / 475.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002202/0.502, allocations: 205.6 kB / 475.3 MB, free: 11.99 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.553e-05/0.502, allocations: 4 kB / 475.3 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.481e-05/0.5021, allocations: 13.34 kB / 475.3 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001301/0.5022, allocations: 41.59 kB / 475.3 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/0.5024, allocations: 110.3 kB / 475.4 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.5025, allocations: 0 / 475.4 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.266e-05/0.5025, allocations: 1.641 kB / 475.4 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.5025, allocations: 4 kB / 475.4 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006828/0.5032, allocations: 401.1 kB / 475.8 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002101/0.5034, allocations: 110.7 kB / 475.9 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.585e-05/0.5035, allocations: 42.56 kB / 476 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.5035, allocations: 7.25 kB / 476 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/0.5037, allocations: 119.2 kB / 476.1 MB, free: 11.36 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.5038, allocations: 0 / 476.1 MB, free: 11.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003216/0.5041, allocations: 177.2 kB / 476.3 MB, free: 11.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.365e-05/0.5041, allocations: 59.92 kB / 476.3 MB, free: 11.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.381e-05/0.5042, allocations: 130.2 kB / 476.5 MB, free: 11.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.5043, allocations: 25.7 kB / 476.5 MB, free: 11.01 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.819e-05/0.5043, allocations: 103 kB / 476.6 MB, free: 10.92 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.286e-05/0.5043, allocations: 40.81 kB / 476.6 MB, free: 10.89 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-06/0.5044, allocations: 0 / 476.6 MB, free: 10.89 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.23e-05/0.5044, allocations: 325.9 kB / 477 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.159e-05/0.5045, allocations: 27.25 kB / 477 MB, free: 10.56 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.159e-05/0.5046, allocations: 102.1 kB / 477.1 MB, free: 10.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.589e-05/0.5047, allocations: 52.36 kB / 477.1 MB, free: 10.42 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.5047, allocations: 0 / 477.1 MB, free: 10.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002097/0.5049, allocations: 158.5 kB / 477.3 MB, free: 10.29 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.5049, allocations: 8 kB / 477.3 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.5049, allocations: 0 / 477.3 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.5049, allocations: 8.234 kB / 477.3 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001718/0.5051, allocations: 46 kB / 477.3 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.5051, allocations: 5.688 kB / 477.3 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.83e-05/0.5052, allocations: 22.45 kB / 477.4 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.691e-05/0.5052, allocations: 8 kB / 477.4 MB, free: 10.21 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 7.816e-05/0.5053, allocations: 123.5 kB / 477.5 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002141/0.5056, allocations: 161.8 kB / 477.7 MB, free: 9.973 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.996e-05/0.5056, allocations: 19.77 kB / 477.7 MB, free: 9.953 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002652/0.5059, allocations: 178.5 kB / 477.9 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.5059, allocations: 7.938 kB / 477.9 MB, free: 9.828 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.5059, allocations: 0 / 477.9 MB, free: 9.828 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.5059, allocations: 1.453 kB / 477.9 MB, free: 9.828 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004169/0.5063, allocations: 451.6 kB / 478.3 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.5063, allocations: 0 / 478.3 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.5064, allocations: 24.66 kB / 478.3 MB, free: 9.434 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.5065, allocations: 0 / 478.3 MB, free: 9.434 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.5065, allocations: 9.641 kB / 478.3 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.5065, allocations: 1.688 kB / 478.3 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.5065, allocations: 0 / 478.3 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003574/0.5069, allocations: 328.7 kB / 478.7 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.623e-05/0.5069, allocations: 90.48 kB / 478.7 MB, free: 9.066 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.507, allocations: 11.83 kB / 478.8 MB, free: 9.059 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.5072, allocations: 42.47 kB / 478.8 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.313e-05/0.5072, allocations: 12.27 kB / 478.8 MB, free: 9.023 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.5072, allocations: 6.156 kB / 478.8 MB, free: 9.02 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.195e-05/0.5073, allocations: 100.8 kB / 478.9 MB, free: 8.934 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5073, allocations: 0 / 478.9 MB, free: 8.934 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002782/0.5076, allocations: 38.03 kB / 479 MB, free: 8.898 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.0005485/0.5082, allocations: 0.8711 MB / 479.8 MB, free: 8.094 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001856/0.5084, allocations: 108.7 kB / 479.9 MB, free: 8.016 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.5084, allocations: 0 / 479.9 MB, free: 8.016 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.08e-05/0.5085, allocations: 59.86 kB / 480 MB, free: 7.977 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001665/0.5086, allocations: 5.875 kB / 480 MB, free: 7.973 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006665/0.5093, allocations: 270.7 kB / 480.3 MB, free: 7.727 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001421/0.5094, allocations: 0.7115 MB / 481 MB, free: 7.004 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.735e-05/0.5095, allocations: 16.02 kB / 481 MB, free: 6.992 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.084e-05/0.5096, allocations: 38.5 kB / 481 MB, free: 6.977 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5096, allocations: 0 / 481 MB, free: 6.977 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.5303, allocations: 2.022 MB / 483 MB, free: 5.723 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001535/0.5305, allocations: 139.1 kB / 483.2 MB, free: 5.531 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.629/2.16, allocations: 0 / 483.2 MB, free: 5.531 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)