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/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: "" <> 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/ModelicaServices trunk/package.mo): time 0.001205/0.001205, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001192/0.001192, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 63.88 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.236, allocations: 50.53 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.00266/0.2387, allocations: 1.737 MB / 410.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.2398, allocations: 0.67 MB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.437e-05/0.2399, allocations: 0 / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.24, allocations: 15.81 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.373e-05/0.24, allocations: 19.78 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002923/0.2403, allocations: 83.78 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001771/0.2405, allocations: 147.6 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.2406, allocations: 33.44 kB / 411.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.2408, allocations: 71.77 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.319e-05/0.2409, allocations: 63.67 kB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.297e-05/0.2409, allocations: 12 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.08e-05/0.241, allocations: 20 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.366e-05/0.241, allocations: 39.89 kB / 411.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.605e-05/0.2411, allocations: 67.7 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001809/0.2413, allocations: 138.6 kB / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.2413, allocations: 0 / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.2413, allocations: 0 / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.789e-06/0.2413, allocations: 3.938 kB / 411.9 MB, free: 14.42 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006482/0.242, allocations: 494.3 kB / 412.3 MB, free: 13.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.242, allocations: 8.031 kB / 412.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.518e-05/0.2421, allocations: 38.75 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002231/0.2423, allocations: 36.81 kB / 412.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.2426, allocations: 224 kB / 412.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.2426, allocations: 8.375 kB / 412.6 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.721e-05/0.2426, allocations: 19.92 kB / 412.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004092/0.243, allocations: 164.4 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.2431, allocations: 0 / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.2431, allocations: 12 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.2431, allocations: 3.938 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003305/0.2434, allocations: 95.91 kB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006142/0.2441, allocations: 424.4 kB / 413.4 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005417/0.2446, allocations: 194.4 kB / 413.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000272/0.2449, allocations: 96.78 kB / 413.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.2449, allocations: 3.984 kB / 413.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004072/0.2453, allocations: 171.2 kB / 413.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.2454, allocations: 0 / 413.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001004/0.2464, allocations: 349.3 kB / 414.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.2464, allocations: 59.34 kB / 414.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.2465, allocations: 141.8 kB / 414.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.2466, allocations: 37.69 kB / 414.4 MB, free: 11.67 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.606e-05/0.2466, allocations: 104.5 kB / 414.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.768e-05/0.2467, allocations: 35.69 kB / 414.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.897e-05/0.2467, allocations: 53.69 kB / 414.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.2469, allocations: 326.8 kB / 414.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.247, allocations: 43.97 kB / 414.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/0.2471, allocations: 120.4 kB / 415 MB, free: 10.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002581/0.2474, allocations: 172.4 kB / 415.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2474, allocations: 0 / 415.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003541/0.2478, allocations: 209.5 kB / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.2478, allocations: 4 kB / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.2478, allocations: 4 kB / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.2478, allocations: 7.938 kB / 415.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.248, allocations: 35.92 kB / 415.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.248, allocations: 4 kB / 415.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.935e-05/0.2481, allocations: 19.88 kB / 415.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.843e-05/0.2481, allocations: 12 kB / 415.5 MB, free: 10.46 MB / 334.1 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 (signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,$whenCondition2,$whenCondition1,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) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001146/0.2483, allocations: 135.5 kB / 415.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.983e-05/0.2483, allocations: 23.89 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006871/0.249, allocations: 281.7 kB / 415.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.249, allocations: 8 kB / 415.9 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.249, allocations: 0 / 415.9 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.249, allocations: 0 / 415.9 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008742/0.2499, allocations: 0.5724 MB / 416.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2499, allocations: 0 / 416.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.924e-05/0.25, allocations: 15.92 kB / 416.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.25, allocations: 4 kB / 416.5 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/0.25, allocations: 7.984 kB / 416.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.2501, allocations: 7.938 kB / 416.6 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2501, allocations: 0 / 416.6 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009704/0.251, allocations: 467.1 kB / 417 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.735e-05/0.2511, allocations: 93.03 kB / 417.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.862e-05/0.2511, allocations: 12.06 kB / 417.1 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.2513, allocations: 23.97 kB / 417.1 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/0.2514, allocations: 11.98 kB / 417.1 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.2514, allocations: 7.984 kB / 417.2 MB, free: 8.703 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.546e-05/0.2515, allocations: 106.8 kB / 417.3 MB, free: 8.602 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2515, allocations: 7.875 kB / 417.3 MB, free: 8.594 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002732/0.2518, allocations: 35.92 kB / 417.3 MB, free: 8.559 MB / 334.1 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) * Number of clocked states: 0 () * 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 (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.001054/0.2528, allocations: 0.9738 MB / 418.3 MB, free: 7.559 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004184/0.2533, allocations: 171.1 kB / 418.4 MB, free: 7.395 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2533, allocations: 0.625 kB / 418.4 MB, free: 7.395 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002461/0.2535, allocations: 95.88 kB / 418.5 MB, free: 7.301 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.2538, allocations: 12.31 kB / 418.5 MB, free: 7.289 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002213/0.256, allocations: 1.953 MB / 420.5 MB, free: 5.195 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.2562, allocations: 0.7047 MB / 421.2 MB, free: 4.465 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.903e-05/0.2563, allocations: 17.08 kB / 421.2 MB, free: 4.449 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.954e-05/0.2564, allocations: 39.42 kB / 421.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2564, allocations: 0 / 421.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01922/0.2756, allocations: 2.759 MB / 424 MB, free: 1.738 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.921/8.197, allocations: 8.484 kB / 424 MB, free: 1.73 MB / 334.1 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)