Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_trunk_cpp_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.0009994/0.0009993, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 226.5 MB / 244.7 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007753/0.0007754, allocations: 95.92 kB / 296.7 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002307/0.000231, allocations: 4 kB / 356.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1967/0.1969, allocations: 51.3 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.001309/0.1983, allocations: 1.399 MB / 409.5 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006754/0.199, allocations: 0.5834 MB / 410.1 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.592e-05/0.1991, allocations: 4.5 kB / 410.1 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.476e-05/0.1992, allocations: 8.672 kB / 410.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.311e-05/0.1992, allocations: 18.48 kB / 410.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001922/0.1994, allocations: 55.92 kB / 410.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001325/0.1995, allocations: 135.6 kB / 410.3 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.1997, allocations: 33.47 kB / 410.4 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.1998, allocations: 56.36 kB / 410.4 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.789e-05/0.1999, allocations: 56.75 kB / 410.5 MB, free: 25.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.962e-05/0.1999, allocations: 8 kB / 410.5 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.663e-05/0.1999, allocations: 16.86 kB / 410.5 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.296e-05/0.2, allocations: 23.91 kB / 410.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.919e-05/0.2, allocations: 92.78 kB / 410.6 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001034/0.2001, allocations: 85.03 kB / 410.7 MB, free: 25.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2002, allocations: 0 / 410.7 MB, free: 25.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2002, allocations: 0 / 410.7 MB, free: 25.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.2002, allocations: 0 / 410.7 MB, free: 25.14 MB / 298.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.000466/0.2006, allocations: 462.5 kB / 411.1 MB, free: 24.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.2007, allocations: 14.62 kB / 411.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.724e-05/0.2007, allocations: 42.73 kB / 411.2 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000201/0.2009, allocations: 40.73 kB / 411.2 MB, free: 24.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.2011, allocations: 198.4 kB / 411.4 MB, free: 24.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.2011, allocations: 16.31 kB / 411.4 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.77e-05/0.2011, allocations: 16.36 kB / 411.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003926/0.2015, allocations: 193.6 kB / 411.6 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.2016, allocations: 0 / 411.6 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.558e-05/0.2016, allocations: 0 / 411.6 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.2016, allocations: 4 kB / 411.7 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003178/0.2019, allocations: 119.9 kB / 411.8 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005051/0.2024, allocations: 432.4 kB / 412.2 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005105/0.2029, allocations: 230.2 kB / 412.4 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002584/0.2032, allocations: 112.8 kB / 412.5 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.2032, allocations: 4 kB / 412.5 MB, free: 23.13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003949/0.2036, allocations: 197.2 kB / 412.7 MB, free: 22.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.814e-06/0.2037, allocations: 4 kB / 412.7 MB, free: 22.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008937/0.2045, allocations: 405.4 kB / 413.1 MB, free: 22.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.007e-05/0.2046, allocations: 59.41 kB / 413.2 MB, free: 22.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.521e-05/0.2047, allocations: 138.1 kB / 413.3 MB, free: 22.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.2047, allocations: 29.7 kB / 413.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.412e-05/0.2047, allocations: 100.5 kB / 413.4 MB, free: 22.17 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.039e-05/0.2048, allocations: 43.53 kB / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.707e-06/0.2048, allocations: 4 kB / 413.5 MB, free: 22.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.906e-05/0.2048, allocations: 326.8 kB / 413.8 MB, free: 21.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.2049, allocations: 51.97 kB / 413.9 MB, free: 21.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/0.2051, allocations: 120.4 kB / 414 MB, free: 21.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000222/0.2053, allocations: 188.4 kB / 414.2 MB, free: 21.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2053, allocations: 0 / 414.2 MB, free: 21.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002997/0.2056, allocations: 215.3 kB / 414.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.2056, allocations: 6.812 kB / 414.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.2056, allocations: 4 kB / 414.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.2057, allocations: 4 kB / 414.4 MB, free: 21.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.2058, allocations: 36.2 kB / 414.4 MB, free: 21.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.2058, allocations: 7.938 kB / 414.4 MB, free: 21.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.626e-05/0.2059, allocations: 31.77 kB / 414.5 MB, free: 21.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.2059, allocations: 15.94 kB / 414.5 MB, free: 21.06 MB / 298.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.276e-05/0.206, allocations: 131.5 kB / 414.6 MB, free: 20.92 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.884e-05/0.2061, allocations: 15.75 kB / 414.6 MB, free: 20.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006408/0.2067, allocations: 319.3 kB / 414.9 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.2067, allocations: 3.984 kB / 414.9 MB, free: 20.58 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2067, allocations: 0 / 414.9 MB, free: 20.58 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.2067, allocations: 11.94 kB / 414.9 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008465/0.2076, allocations: 0.6045 MB / 415.6 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2076, allocations: 0 / 415.6 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.841e-05/0.2077, allocations: 19.98 kB / 415.6 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.2077, allocations: 4 kB / 415.6 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.037e-05/0.2077, allocations: 11.92 kB / 415.6 MB, free: 19.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.2078, allocations: 0 / 415.6 MB, free: 19.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2078, allocations: 0 / 415.6 MB, free: 19.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009211/0.2087, allocations: 0.5213 MB / 416.1 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.419e-05/0.2087, allocations: 88.98 kB / 416.2 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.515e-05/0.2088, allocations: 19.98 kB / 416.2 MB, free: 19.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001909/0.209, allocations: 39.97 kB / 416.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.754e-05/0.209, allocations: 7.984 kB / 416.3 MB, free: 19.17 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.209, allocations: 7.984 kB / 416.3 MB, free: 19.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.72e-05/0.2091, allocations: 110.4 kB / 416.4 MB, free: 19.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2091, allocations: 0 / 416.4 MB, free: 19.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002538/0.2093, allocations: 31.91 kB / 416.4 MB, free: 19.02 MB / 298.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) * 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 (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.0009987/0.2104, allocations: 1.024 MB / 417.4 MB, free: 17.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003914/0.2108, allocations: 187.7 kB / 417.6 MB, free: 17.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2108, allocations: 0 / 417.6 MB, free: 17.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002366/0.211, allocations: 112.5 kB / 417.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002443/0.2113, allocations: 8 kB / 417.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.2126, allocations: 0.9771 MB / 418.7 MB, free: 16.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001057/0.2127, allocations: 0.7043 MB / 419.4 MB, free: 15.88 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.338e-05/0.2128, allocations: 39.48 kB / 419.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2128, allocations: 0 / 419.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.548/2.761, allocations: 1.847 MB / 421.3 MB, free: 14 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_DemonstrateSignalExtrema_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)