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.001347/0.001347, 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.001345/0.001345, 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 trunk/package.mo): time 1.506/1.506, allocations: 227.4 MB / 247 MB, free: 10.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002138/0.002138, allocations: 71.88 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.3008, allocations: 50.55 MB / 408.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002879/0.3037, allocations: 1.725 MB / 410.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001173/0.3049, allocations: 0.6622 MB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.775e-05/0.305, allocations: 0 / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.3051, allocations: 19.8 kB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.114e-05/0.3052, allocations: 19.8 kB / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002958/0.3055, allocations: 83.77 kB / 411.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001993/0.3057, allocations: 159.5 kB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.3058, allocations: 29.42 kB / 411.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.306, allocations: 67.81 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.3061, allocations: 63.69 kB / 411.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.755e-05/0.3061, allocations: 16 kB / 411.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.868e-05/0.3062, allocations: 23.98 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.841e-05/0.3062, allocations: 31.91 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.197e-05/0.3063, allocations: 67.72 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002095/0.3065, allocations: 142.5 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3065, allocations: 0 / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.3065, allocations: 0 / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.3066, allocations: 0 / 411.9 MB, free: 14.34 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.0007232/0.3073, allocations: 494.3 kB / 412.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.3073, allocations: 12.03 kB / 412.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.642e-05/0.3074, allocations: 38.73 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00022/0.3076, allocations: 36.83 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002922/0.3079, allocations: 212.7 kB / 412.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.594e-05/0.308, allocations: 12.38 kB / 412.7 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.871e-05/0.308, allocations: 15.94 kB / 412.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004511/0.3085, allocations: 165.5 kB / 412.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3085, allocations: 3.938 kB / 412.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.3085, allocations: 3.984 kB / 412.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.3085, allocations: 4 kB / 412.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003597/0.3089, allocations: 99.91 kB / 413 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000777/0.3097, allocations: 424.4 kB / 413.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006295/0.3103, allocations: 190.4 kB / 413.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003125/0.3106, allocations: 92.72 kB / 413.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.219e-05/0.3107, allocations: 0 / 413.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004835/0.3111, allocations: 179.2 kB / 413.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.676e-06/0.3112, allocations: 4 kB / 413.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001068/0.3122, allocations: 349.3 kB / 414.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.3123, allocations: 59.34 kB / 414.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.3125, allocations: 152.8 kB / 414.4 MB, free: 11.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.3125, allocations: 29.7 kB / 414.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.639e-05/0.3126, allocations: 104.5 kB / 414.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.961e-05/0.3126, allocations: 51.67 kB / 414.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.613e-05/0.3127, allocations: 45.7 kB / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.3129, allocations: 322.8 kB / 415 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.313, allocations: 43.97 kB / 415 MB, free: 11.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.3132, allocations: 124.4 kB / 415.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/0.3135, allocations: 164.4 kB / 415.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3135, allocations: 4 kB / 415.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000398/0.3139, allocations: 209.3 kB / 415.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.3139, allocations: 8 kB / 415.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.3139, allocations: 0 / 415.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.314, allocations: 7.938 kB / 415.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.3141, allocations: 39.91 kB / 415.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.3142, allocations: 0 / 415.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.41e-05/0.3143, allocations: 19.89 kB / 415.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.964e-05/0.3143, allocations: 12.28 kB / 415.6 MB, free: 10.38 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.0001312/0.3144, allocations: 139.5 kB / 415.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.056e-05/0.3145, allocations: 11.91 kB / 415.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007578/0.3152, allocations: 285.4 kB / 416 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.3152, allocations: 4 kB / 416 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3153, allocations: 0 / 416 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.3153, allocations: 0 / 416 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.3163, allocations: 0.5762 MB / 416.6 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3163, allocations: 0 / 416.6 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.3164, allocations: 15.98 kB / 416.6 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3164, allocations: 3.938 kB / 416.6 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.137e-05/0.3165, allocations: 8 kB / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.3165, allocations: 0 / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3165, allocations: 0 / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.3176, allocations: 471.1 kB / 417.1 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.219e-05/0.3176, allocations: 93.05 kB / 417.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.991e-05/0.3177, allocations: 8 kB / 417.2 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.3179, allocations: 27.95 kB / 417.2 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.676e-05/0.3179, allocations: 15.92 kB / 417.2 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.318, allocations: 8 kB / 417.2 MB, free: 8.625 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.941e-05/0.3181, allocations: 110.6 kB / 417.3 MB, free: 8.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3181, allocations: 0 / 417.3 MB, free: 8.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002954/0.3184, allocations: 36 kB / 417.4 MB, free: 8.484 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.001254/0.3196, allocations: 0.9772 MB / 418.3 MB, free: 7.484 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004938/0.3201, allocations: 164.3 kB / 418.5 MB, free: 7.324 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3201, allocations: 8.125 kB / 418.5 MB, free: 7.316 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002685/0.3204, allocations: 87.94 kB / 418.6 MB, free: 7.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002463/0.3207, allocations: 19.97 kB / 418.6 MB, free: 7.211 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002499/0.3232, allocations: 1.942 MB / 420.6 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.3235, allocations: 0.7047 MB / 421.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.279e-05/0.3236, allocations: 21.06 kB / 421.3 MB, free: 4.379 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.503e-05/0.3237, allocations: 39.42 kB / 421.3 MB, free: 4.34 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3237, allocations: 0 / 421.3 MB, free: 4.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02642/0.3501, allocations: 2.769 MB / 424.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.507/8.857, allocations: 12.55 kB / 424.1 MB, free: 1.648 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 & /home/hudson/saved_omc/OMSimulator/install/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)