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.001287/0.001287, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001106/0.001106, allocations: 204.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 60.34 kB / 307 MB, free: 0.5742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1059, allocations: 50.54 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002872/0.1088, allocations: 1.725 MB / 359.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.1099, allocations: 0.6639 MB / 360 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.285e-05/0.11, allocations: 3.938 kB / 360 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001034/0.1101, allocations: 15.86 kB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.967e-05/0.1102, allocations: 19.8 kB / 360 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002785/0.1105, allocations: 87.75 kB / 360.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001716/0.1107, allocations: 151.5 kB / 360.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.1108, allocations: 33.42 kB / 360.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.1109, allocations: 71.77 kB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.033e-05/0.111, allocations: 67.73 kB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.41e-05/0.1111, allocations: 12 kB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.789e-05/0.1111, allocations: 20 kB / 360.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.214e-05/0.1112, allocations: 31.91 kB / 360.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.747e-05/0.1112, allocations: 71.7 kB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001718/0.1114, allocations: 131.8 kB / 360.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1114, allocations: 4 kB / 360.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1114, allocations: 0 / 360.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.1114, allocations: 0 / 360.7 MB, free: 10.92 MB / 302.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.0005906/0.112, allocations: 494.3 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.1121, allocations: 11.97 kB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.251e-05/0.1121, allocations: 42.73 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00022/0.1124, allocations: 36.81 kB / 361.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.1125, allocations: 208 kB / 361.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.1126, allocations: 16.36 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.5e-05/0.1126, allocations: 19.88 kB / 361.5 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004402/0.1131, allocations: 153.5 kB / 361.6 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.1131, allocations: 7.938 kB / 361.6 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.1131, allocations: 4 kB / 361.6 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.1131, allocations: 0 / 361.6 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003353/0.1135, allocations: 103.9 kB / 361.7 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006006/0.1141, allocations: 424.4 kB / 362.2 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005564/0.1146, allocations: 190.4 kB / 362.3 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002698/0.1149, allocations: 92.78 kB / 362.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.723e-05/0.1149, allocations: 0 / 362.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004669/0.1154, allocations: 175.2 kB / 362.6 MB, free: 8.797 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.824e-06/0.1154, allocations: 0 / 362.6 MB, free: 8.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009763/0.1164, allocations: 345.4 kB / 362.9 MB, free: 8.453 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.1165, allocations: 63.33 kB / 363 MB, free: 8.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.1166, allocations: 145.7 kB / 363.2 MB, free: 8.227 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.1166, allocations: 33.7 kB / 363.2 MB, free: 8.188 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.196e-05/0.1167, allocations: 104.5 kB / 363.3 MB, free: 8.082 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.47e-05/0.1167, allocations: 51.38 kB / 363.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.216e-05/0.1168, allocations: 45.7 kB / 363.4 MB, free: 7.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1169, allocations: 322.8 kB / 363.7 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.117, allocations: 43.97 kB / 363.7 MB, free: 7.613 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.1172, allocations: 118.3 kB / 363.9 MB, free: 7.469 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002734/0.1175, allocations: 172.4 kB / 364 MB, free: 7.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1175, allocations: 4 kB / 364 MB, free: 7.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003589/0.1178, allocations: 201.3 kB / 364.2 MB, free: 7.062 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.1179, allocations: 4 kB / 364.2 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.1179, allocations: 4 kB / 364.2 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.1179, allocations: 11.88 kB / 364.2 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.1181, allocations: 35.91 kB / 364.3 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.1181, allocations: 4 kB / 364.3 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.887e-05/0.1182, allocations: 24.11 kB / 364.3 MB, free: 6.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.1182, allocations: 16 kB / 364.3 MB, free: 6.965 MB / 302.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.0001154/0.1184, allocations: 135.5 kB / 364.5 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.778e-05/0.1184, allocations: 11.91 kB / 364.5 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006945/0.1191, allocations: 288.5 kB / 364.7 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.1191, allocations: 4 kB / 364.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1191, allocations: 0 / 364.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.1191, allocations: 3.984 kB / 364.8 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009755/0.1201, allocations: 0.5685 MB / 365.3 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1201, allocations: 3.938 kB / 365.3 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/0.1202, allocations: 19.92 kB / 365.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.1203, allocations: 0 / 365.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.474e-05/0.1203, allocations: 11.98 kB / 365.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1203, allocations: 0 / 365.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1203, allocations: 0 / 365.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.1213, allocations: 471 kB / 365.8 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.805e-05/0.1214, allocations: 85.05 kB / 365.9 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.205e-05/0.1214, allocations: 11.98 kB / 365.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.1216, allocations: 27.97 kB / 365.9 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.417e-05/0.1217, allocations: 7.984 kB / 365.9 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.1217, allocations: 15.98 kB / 366 MB, free: 5.215 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.403e-05/0.1218, allocations: 106.6 kB / 366.1 MB, free: 5.113 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1218, allocations: 4.062 kB / 366.1 MB, free: 5.109 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002965/0.1221, allocations: 35.84 kB / 366.1 MB, free: 5.074 MB / 302.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.001158/0.1233, allocations: 0.9773 MB / 367.1 MB, free: 4.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004792/0.1237, allocations: 180.3 kB / 367.3 MB, free: 3.895 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1238, allocations: 0 / 367.3 MB, free: 3.895 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002625/0.124, allocations: 87.94 kB / 367.3 MB, free: 3.809 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002452/0.1243, allocations: 12.2 kB / 367.4 MB, free: 3.797 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.1267, allocations: 1.957 MB / 369.3 MB, free: 1.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.127, allocations: 0.7084 MB / 370 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.026e-05/0.127, allocations: 9.094 kB / 370 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.318e-05/0.1271, allocations: 47.41 kB / 370.1 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1271, allocations: 0 / 370.1 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3367/0.4638, allocations: 2.696 MB / 372.8 MB, free: 20.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.304/8.767, allocations: 4.25 kB / 372.8 MB, free: 20.2 MB / 302.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)