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.001088/0.001088, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.185/1.185, allocations: 227.2 MB / 245 MB, free: 5.777 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000974/0.0009741, allocations: 114.2 kB / 297.3 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002341/0.000234, allocations: 4 kB / 358 MB, free: 9.215 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1943/0.1946, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08568/0.2803, allocations: 78 MB / 487.5 MB, free: 12.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/0.2806, allocations: 72.64 kB / 487.6 MB, free: 12.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005814/0.2864, allocations: 1.996 MB / 489.6 MB, free: 10.54 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2864, allocations: 0 / 489.6 MB, free: 10.54 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.938e-06/0.2864, allocations: 0 / 489.6 MB, free: 10.54 MB / 362.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.0005593/0.287, allocations: 482.2 kB / 490 MB, free: 10 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.2871, allocations: 12.03 kB / 490 MB, free: 9.992 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.147e-05/0.2871, allocations: 38.55 kB / 490.1 MB, free: 9.945 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002138/0.2873, allocations: 39.78 kB / 490.1 MB, free: 9.906 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.2875, allocations: 209 kB / 490.3 MB, free: 9.664 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.497e-05/0.2876, allocations: 15.94 kB / 490.3 MB, free: 9.648 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.857e-05/0.2876, allocations: 12 kB / 490.3 MB, free: 9.637 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004057/0.288, allocations: 181.5 kB / 490.5 MB, free: 9.453 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.288, allocations: 0 / 490.5 MB, free: 9.453 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.2881, allocations: 0 / 490.5 MB, free: 9.453 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-06/0.2881, allocations: 4 kB / 490.5 MB, free: 9.449 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003355/0.2884, allocations: 127.8 kB / 490.7 MB, free: 9.324 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006049/0.289, allocations: 428.5 kB / 491.1 MB, free: 8.855 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005376/0.2896, allocations: 234.4 kB / 491.3 MB, free: 8.617 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.2896, allocations: 0 / 491.3 MB, free: 8.617 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004335/0.29, allocations: 198.2 kB / 491.5 MB, free: 8.414 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.703e-06/0.2901, allocations: 0 / 491.5 MB, free: 8.414 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009902/0.291, allocations: 409.2 kB / 491.9 MB, free: 8.008 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.2911, allocations: 63.34 kB / 492 MB, free: 7.934 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.234e-05/0.2912, allocations: 129.3 kB / 492.1 MB, free: 7.797 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.2912, allocations: 33.7 kB / 492.1 MB, free: 7.758 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.175e-05/0.2913, allocations: 100.5 kB / 492.2 MB, free: 7.656 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.244e-05/0.2913, allocations: 43.44 kB / 492.3 MB, free: 7.613 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.025e-06/0.2914, allocations: 4 kB / 492.3 MB, free: 7.609 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.395e-05/0.2915, allocations: 322.8 kB / 492.6 MB, free: 7.285 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.2916, allocations: 51.97 kB / 492.6 MB, free: 7.234 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.2917, allocations: 116.5 kB / 492.7 MB, free: 7.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001324/0.2919, allocations: 67.92 kB / 492.8 MB, free: 7.023 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2919, allocations: 0 / 492.8 MB, free: 7.023 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003453/0.2922, allocations: 209.3 kB / 493 MB, free: 6.812 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.2923, allocations: 7.953 kB / 493 MB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.2923, allocations: 4 kB / 493 MB, free: 6.801 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.2923, allocations: 4 kB / 493 MB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.2925, allocations: 48.19 kB / 493.1 MB, free: 6.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.158e-06/0.2925, allocations: 4 kB / 493.1 MB, free: 6.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.96e-05/0.2926, allocations: 23.75 kB / 493.1 MB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/0.2926, allocations: 11.98 kB / 493.1 MB, free: 6.711 MB / 362.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 0.000101/0.2927, allocations: 135.5 kB / 493.2 MB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.186e-05/0.2927, allocations: 11.91 kB / 493.3 MB, free: 6.555 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006818/0.2934, allocations: 322.2 kB / 493.6 MB, free: 6.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.2934, allocations: 4 kB / 493.6 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.2935, allocations: 4 kB / 493.6 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.2935, allocations: 0 / 493.6 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008936/0.2944, allocations: 0.6181 MB / 494.2 MB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2944, allocations: 0 / 494.2 MB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000135/0.2945, allocations: 23.88 kB / 494.2 MB, free: 5.527 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.2945, allocations: 0 / 494.2 MB, free: 5.527 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.664e-05/0.2946, allocations: 7.984 kB / 494.2 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2946, allocations: 0 / 494.2 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2946, allocations: 0 / 494.2 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009581/0.2955, allocations: 0.5148 MB / 494.7 MB, free: 4.988 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.713e-05/0.2956, allocations: 97.02 kB / 494.8 MB, free: 4.875 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.859e-05/0.2956, allocations: 15.89 kB / 494.9 MB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001915/0.2958, allocations: 39.95 kB / 494.9 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.296e-05/0.2959, allocations: 7.984 kB / 494.9 MB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.605e-05/0.2959, allocations: 15.94 kB / 494.9 MB, free: 4.797 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.955e-05/0.296, allocations: 106 kB / 495 MB, free: 4.695 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.296, allocations: 0 / 495 MB, free: 4.695 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000276/0.2963, allocations: 36.25 kB / 495.1 MB, free: 4.66 MB / 362.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.001144/0.2974, allocations: 1.035 MB / 496.1 MB, free: 3.598 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004124/0.2979, allocations: 182.8 kB / 496.3 MB, free: 3.422 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2979, allocations: 0 / 496.3 MB, free: 3.422 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002426/0.2981, allocations: 116.4 kB / 496.4 MB, free: 3.309 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000146/0.2983, allocations: 4 kB / 496.4 MB, free: 3.305 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.2996, allocations: 2.01 MB / 498.4 MB, free: 1.215 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.2999, allocations: 0.7082 MB / 499.1 MB, free: 492 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.957e-05/0.2999, allocations: 16.64 kB / 499.1 MB, free: 472 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.005e-05/0.3, allocations: 31.42 kB / 499.1 MB, free: 440 kB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.3, allocations: 0 / 499.1 MB, free: 440 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01415/0.3142, allocations: 2.32 MB / 0.4897 GB, free: 14.24 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/0.3144, allocations: 178 kB / 0.4899 GB, free: 14 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.539/1.853, allocations: 0 / 0.4899 GB, free: 14 MB / 378.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)