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.0007884/0.0007883, allocations: 103.2 kB / 17 MB, free: 6.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009041/0.000904, allocations: 194.5 kB / 17.9 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 246 MB, free: 11.97 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002135/0.0002136, allocations: 8 kB / 306.8 MB, free: 1.496 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1157, allocations: 51.49 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.001928/0.1177, allocations: 1.4 MB / 359.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.1188, allocations: 0.6004 MB / 360.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.507e-05/0.1188, allocations: 0 / 360.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001073/0.119, allocations: 11.88 kB / 360.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.225e-05/0.119, allocations: 19.84 kB / 360.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002939/0.1193, allocations: 47.94 kB / 360.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000289/0.1196, allocations: 135.5 kB / 360.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.1198, allocations: 36.78 kB / 360.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001641/0.1199, allocations: 55.83 kB / 360.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.1201, allocations: 59.73 kB / 360.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.03e-05/0.1201, allocations: 8 kB / 360.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.499e-05/0.1202, allocations: 12 kB / 360.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.134e-05/0.1202, allocations: 31.89 kB / 360.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.916e-05/0.1203, allocations: 45.64 kB / 360.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001424/0.1204, allocations: 88.05 kB / 360.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.1204, allocations: 0 / 360.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1204, allocations: 4 kB / 360.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.1205, allocations: 0 / 360.8 MB, free: 11.44 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.0007991/0.1213, allocations: 462.3 kB / 361.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.1213, allocations: 12.03 kB / 361.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.757e-05/0.1214, allocations: 38.55 kB / 361.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002098/0.1216, allocations: 35.89 kB / 361.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.1219, allocations: 209.5 kB / 361.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.771e-05/0.1219, allocations: 8 kB / 361.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.582e-05/0.1219, allocations: 19.98 kB / 361.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000637/0.1226, allocations: 180 kB / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.1226, allocations: 0 / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.413e-05/0.1226, allocations: 0 / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.1227, allocations: 7.984 kB / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005508/0.1232, allocations: 127.9 kB / 361.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009935/0.1242, allocations: 432.3 kB / 362.3 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008228/0.1251, allocations: 226.4 kB / 362.6 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004231/0.1255, allocations: 112.8 kB / 362.7 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.033e-05/0.1255, allocations: 4 kB / 362.7 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006564/0.1262, allocations: 199.2 kB / 362.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 3.216e-06/0.1262, allocations: 3.938 kB / 362.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.001558/0.1278, allocations: 403.7 kB / 363.3 MB, free: 8.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.706e-05/0.1279, allocations: 55.41 kB / 363.3 MB, free: 8.754 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.1281, allocations: 146 kB / 363.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.691e-05/0.1281, allocations: 33.7 kB / 363.5 MB, free: 8.559 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.973e-05/0.1282, allocations: 108.4 kB / 363.6 MB, free: 8.449 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.32e-05/0.1283, allocations: 43.44 kB / 363.6 MB, free: 8.406 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.089e-05/0.1283, allocations: 4 kB / 363.6 MB, free: 8.402 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.1285, allocations: 326.8 kB / 364 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001684/0.1287, allocations: 47.97 kB / 364 MB, free: 8.027 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002357/0.129, allocations: 118.3 kB / 364.1 MB, free: 7.883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.1292, allocations: 71.86 kB / 364.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.1292, allocations: 0 / 364.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000571/0.1298, allocations: 217.4 kB / 364.4 MB, free: 7.594 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.1298, allocations: 4 kB / 364.4 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.1298, allocations: 4 kB / 364.4 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.1299, allocations: 4 kB / 364.4 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.1301, allocations: 39.91 kB / 364.5 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.62e-05/0.1302, allocations: 7.953 kB / 364.5 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001474/0.1303, allocations: 19.84 kB / 364.5 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.375e-05/0.1304, allocations: 23.97 kB / 364.5 MB, free: 7.492 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 ($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.0001845/0.1306, allocations: 131.6 kB / 364.6 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.546e-05/0.1306, allocations: 11.91 kB / 364.7 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001055/0.1317, allocations: 318.2 kB / 365 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.1317, allocations: 4 kB / 365 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.1317, allocations: 0 / 365 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.1317, allocations: 3.953 kB / 365 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00153/0.1333, allocations: 0.6062 MB / 365.6 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-06/0.1333, allocations: 0 / 365.6 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001558/0.1334, allocations: 15.98 kB / 365.6 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.1335, allocations: 7.938 kB / 365.6 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.245e-05/0.1335, allocations: 15.97 kB / 365.6 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.1335, allocations: 3.953 kB / 365.6 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1335, allocations: 0 / 365.6 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.1352, allocations: 0.5109 MB / 366.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.764e-05/0.1353, allocations: 92.95 kB / 366.2 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.302e-05/0.1353, allocations: 8 kB / 366.2 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002937/0.1356, allocations: 44.02 kB / 366.3 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.551e-05/0.1357, allocations: 11.94 kB / 366.3 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.713e-05/0.1358, allocations: 11.98 kB / 366.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001095/0.1359, allocations: 101.8 kB / 366.4 MB, free: 5.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1359, allocations: 0 / 366.4 MB, free: 5.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000515/0.1364, allocations: 35.94 kB / 366.4 MB, free: 5.465 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 (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.001902/0.1383, allocations: 1.024 MB / 367.5 MB, free: 4.422 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007062/0.139, allocations: 188.2 kB / 367.6 MB, free: 4.238 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1391, allocations: 8.062 kB / 367.6 MB, free: 4.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004188/0.1395, allocations: 115.8 kB / 367.8 MB, free: 4.117 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003992/0.1399, allocations: 15.95 kB / 367.8 MB, free: 4.102 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002574/0.1425, allocations: 0.9493 MB / 368.7 MB, free: 3.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003956/0.1429, allocations: 0.7083 MB / 369.4 MB, free: 2.336 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.031e-05/0.143, allocations: 12.64 kB / 369.4 MB, free: 2.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.1431, allocations: 35.48 kB / 369.5 MB, free: 2.285 MB / 302.1 MB Notification: Performance of SimCode: time 2.896e-06/0.1431, allocations: 0 / 369.5 MB, free: 2.285 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02125/0.1644, allocations: 2.346 MB / 371.8 MB, free: 72 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.243/0.4075, allocations: 194 kB / 372 MB, free: 22.17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.903/2.31, allocations: 0 / 372 MB, free: 22.17 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/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)