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.001194/0.001194, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001241/0.001241, allocations: 206.4 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.49/1.49, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00216/0.00216, allocations: 56.41 kB / 307 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1173, allocations: 50.54 MB / 357.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003314/0.1207, allocations: 1.723 MB / 359.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001326/0.1221, allocations: 0.6601 MB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001629/0.1223, allocations: 7.938 kB / 360 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.1224, allocations: 19.8 kB / 360 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.048e-05/0.1225, allocations: 11.81 kB / 360 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003486/0.1229, allocations: 91.75 kB / 360.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002034/0.1231, allocations: 147.6 kB / 360.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.1232, allocations: 33.42 kB / 360.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001841/0.1234, allocations: 79.7 kB / 360.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.1235, allocations: 59.73 kB / 360.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.633e-05/0.1236, allocations: 12 kB / 360.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.732e-05/0.1236, allocations: 24 kB / 360.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.755e-05/0.1237, allocations: 35.89 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.363e-05/0.1237, allocations: 63.7 kB / 360.5 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002001/0.124, allocations: 135.8 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.124, allocations: 3.984 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.124, allocations: 0 / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.517e-06/0.124, allocations: 4 kB / 360.7 MB, free: 10.83 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.0006404/0.1246, allocations: 490.3 kB / 361.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.1247, allocations: 8.031 kB / 361.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.916e-05/0.1247, allocations: 42.73 kB / 361.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002368/0.125, allocations: 28.81 kB / 361.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001844/0.1252, allocations: 212.2 kB / 361.4 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.1252, allocations: 12.31 kB / 361.4 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.407e-05/0.1253, allocations: 23.92 kB / 361.5 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004137/0.1257, allocations: 160.7 kB / 361.6 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.1257, allocations: 0 / 361.6 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.1257, allocations: 4 kB / 361.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.1257, allocations: 7.938 kB / 361.6 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000337/0.1261, allocations: 99.91 kB / 361.7 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006337/0.1267, allocations: 428.3 kB / 362.2 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005546/0.1273, allocations: 190.4 kB / 362.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002781/0.1276, allocations: 92.78 kB / 362.4 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.1276, allocations: 4 kB / 362.4 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004675/0.1281, allocations: 177.9 kB / 362.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.923e-06/0.1281, allocations: 0 / 362.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.001087/0.1292, allocations: 341.5 kB / 362.9 MB, free: 8.375 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/0.1292, allocations: 67.31 kB / 363 MB, free: 8.297 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.1294, allocations: 145.7 kB / 363.2 MB, free: 8.145 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.1294, allocations: 33.7 kB / 363.2 MB, free: 8.105 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.847e-05/0.1295, allocations: 108.4 kB / 363.3 MB, free: 7.996 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.836e-05/0.1295, allocations: 35.45 kB / 363.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.27e-05/0.1296, allocations: 45.7 kB / 363.4 MB, free: 7.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.1298, allocations: 330.8 kB / 363.7 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.1299, allocations: 47.97 kB / 363.7 MB, free: 7.531 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.1301, allocations: 118.2 kB / 363.9 MB, free: 7.387 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003787/0.1305, allocations: 172.4 kB / 364 MB, free: 7.188 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.1305, allocations: 0 / 364 MB, free: 7.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003976/0.1309, allocations: 201.5 kB / 364.2 MB, free: 6.984 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.1309, allocations: 8 kB / 364.2 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.1309, allocations: 7.938 kB / 364.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.131, allocations: 7.938 kB / 364.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.1312, allocations: 39.91 kB / 364.3 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.1312, allocations: 7.938 kB / 364.3 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.1313, allocations: 15.84 kB / 364.3 MB, free: 6.898 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.1313, allocations: 15.98 kB / 364.3 MB, free: 6.883 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.0001339/0.1315, allocations: 131.5 kB / 364.5 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.888e-05/0.1315, allocations: 15.84 kB / 364.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007202/0.1322, allocations: 278.2 kB / 364.7 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1322, allocations: 0 / 364.7 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1322, allocations: 0 / 364.7 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1323, allocations: 8 kB / 364.7 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.1334, allocations: 0.5709 MB / 365.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1334, allocations: 0 / 365.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.1335, allocations: 19.98 kB / 365.3 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.1335, allocations: 4 kB / 365.3 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.1336, allocations: 7.984 kB / 365.3 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1336, allocations: 3.938 kB / 365.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1336, allocations: 0 / 365.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.1347, allocations: 475 kB / 365.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.416e-05/0.1348, allocations: 88.98 kB / 365.9 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.097e-05/0.1348, allocations: 8 kB / 365.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.135, allocations: 32.02 kB / 365.9 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.567e-05/0.1351, allocations: 11.98 kB / 366 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.1351, allocations: 7.984 kB / 366 MB, free: 5.137 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.756e-05/0.1352, allocations: 106.3 kB / 366.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1352, allocations: 0 / 366.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002974/0.1355, allocations: 35.84 kB / 366.1 MB, free: 5 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.001303/0.1368, allocations: 0.9848 MB / 367.1 MB, free: 3.988 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004762/0.1373, allocations: 172 kB / 367.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1373, allocations: 0 / 367.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002735/0.1376, allocations: 96.5 kB / 367.3 MB, free: 3.727 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.1379, allocations: 8 kB / 367.4 MB, free: 3.719 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002449/0.1403, allocations: 1.958 MB / 369.3 MB, free: 1.613 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003596/0.1407, allocations: 0.7084 MB / 370 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.235e-05/0.1408, allocations: 13.08 kB / 370 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.01e-05/0.1409, allocations: 39.42 kB / 370.1 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1409, allocations: 0 / 370.1 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1767/0.3175, allocations: 2.702 MB / 372.8 MB, free: 20.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.405/7.723, allocations: 2.562 kB / 372.8 MB, free: 20.12 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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)