Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_4_1_0-beta_om_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.001379/0.001379, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001385/0.001385, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.454/1.454, allocations: 227.7 MB / 247.2 MB, free: 10.2 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 67.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.282, allocations: 50.55 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002886/0.285, allocations: 1.73 MB / 410.8 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.2862, allocations: 0.6583 MB / 411.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.281e-05/0.2863, allocations: 0 / 411.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001245/0.2864, allocations: 19.8 kB / 411.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.62e-05/0.2865, allocations: 15.81 kB / 411.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003435/0.2868, allocations: 91.75 kB / 411.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002115/0.287, allocations: 147.6 kB / 411.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/0.2872, allocations: 37.42 kB / 411.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.2873, allocations: 63.77 kB / 411.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001107/0.2875, allocations: 75.67 kB / 411.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/0.2875, allocations: 12 kB / 411.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.602e-05/0.2876, allocations: 16 kB / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.491e-05/0.2876, allocations: 39.89 kB / 412 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.333e-05/0.2877, allocations: 55.73 kB / 412 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002211/0.2879, allocations: 146.6 kB / 412.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2879, allocations: 0 / 412.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.288, allocations: 0 / 412.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.728e-06/0.288, allocations: 0 / 412.2 MB, free: 14.27 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.0007134/0.2887, allocations: 498.2 kB / 412.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.2887, allocations: 8.031 kB / 412.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.68e-05/0.2888, allocations: 42.73 kB / 412.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002138/0.289, allocations: 32.81 kB / 412.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002704/0.2893, allocations: 216.6 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.088e-05/0.2893, allocations: 12.36 kB / 413 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.31e-05/0.2894, allocations: 15.94 kB / 413 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004449/0.2898, allocations: 165.5 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.2898, allocations: 0 / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.2899, allocations: 4 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2899, allocations: 0 / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003553/0.2902, allocations: 103.8 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000696/0.2909, allocations: 416.5 kB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006621/0.2916, allocations: 202.3 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002927/0.2919, allocations: 88.78 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.2919, allocations: 4 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004377/0.2924, allocations: 178.3 kB / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.2924, allocations: 0 / 414.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001022/0.2934, allocations: 349.3 kB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/0.2935, allocations: 71.31 kB / 414.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.2936, allocations: 146.3 kB / 414.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.2936, allocations: 33.7 kB / 414.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.989e-05/0.2937, allocations: 108.5 kB / 414.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.439e-05/0.2938, allocations: 39.69 kB / 414.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.133e-05/0.2938, allocations: 41.7 kB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.294, allocations: 326.8 kB / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.2941, allocations: 47.97 kB / 415.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001709/0.2943, allocations: 112.5 kB / 415.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003134/0.2946, allocations: 172.4 kB / 415.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2946, allocations: 3.938 kB / 415.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003844/0.295, allocations: 201.3 kB / 415.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.295, allocations: 11.59 kB / 415.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.2951, allocations: 4 kB / 415.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.2951, allocations: 7.938 kB / 415.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.2953, allocations: 40.19 kB / 415.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.2953, allocations: 8 kB / 415.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.714e-05/0.2954, allocations: 27.88 kB / 415.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.706e-05/0.2954, allocations: 8 kB / 415.8 MB, free: 10.3 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.0001269/0.2955, allocations: 128.4 kB / 416 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.711e-05/0.2956, allocations: 19.84 kB / 416 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007324/0.2963, allocations: 282.2 kB / 416.2 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.2963, allocations: 0 / 416.2 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2963, allocations: 0 / 416.2 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.2964, allocations: 7.984 kB / 416.3 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009829/0.2973, allocations: 0.5714 MB / 416.8 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2974, allocations: 0 / 416.8 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.2975, allocations: 15.98 kB / 416.8 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.481e-06/0.2975, allocations: 4 kB / 416.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.2975, allocations: 3.984 kB / 416.8 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.2975, allocations: 3.938 kB / 416.9 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2975, allocations: 4 kB / 416.9 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/0.2986, allocations: 471.1 kB / 417.3 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.52e-05/0.2987, allocations: 89.05 kB / 417.4 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.2987, allocations: 8 kB / 417.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.2989, allocations: 27.95 kB / 417.4 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.611e-05/0.299, allocations: 11.98 kB / 417.4 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.299, allocations: 12.05 kB / 417.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.28e-05/0.2991, allocations: 103.3 kB / 417.6 MB, free: 8.457 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.994e-06/0.2991, allocations: 0 / 417.6 MB, free: 8.457 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000288/0.2994, allocations: 35.88 kB / 417.6 MB, free: 8.422 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.001253/0.3006, allocations: 0.9859 MB / 418.6 MB, free: 7.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004849/0.3011, allocations: 171.1 kB / 418.8 MB, free: 7.246 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3011, allocations: 0 / 418.8 MB, free: 7.246 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002778/0.3014, allocations: 95.86 kB / 418.8 MB, free: 7.152 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002511/0.3017, allocations: 8 kB / 418.9 MB, free: 7.145 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.3043, allocations: 1.954 MB / 420.8 MB, free: 5.051 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003586/0.3047, allocations: 0.7086 MB / 421.5 MB, free: 4.316 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.053e-05/0.3047, allocations: 17.06 kB / 421.5 MB, free: 4.301 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.713e-05/0.3048, allocations: 35.42 kB / 421.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of SimCode: time 2.104e-06/0.3048, allocations: 0 / 421.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02596/0.3308, allocations: 2.77 MB / 424.3 MB, free: 1.598 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.978/8.308, allocations: 0.8906 kB / 424.3 MB, free: 1.598 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_4_1_0-beta_om_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)