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.0009951/0.0009952, allocations: 94.75 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001256/0.001256, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.3 MB / 245.9 MB, free: 12.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003767/0.0003768, allocations: 8 kB / 306.7 MB, free: 1.523 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1401, allocations: 51.5 MB / 358.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002219/0.1424, allocations: 1.388 MB / 359.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.1436, allocations: 0.5965 MB / 360.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.666e-05/0.1437, allocations: 0 / 360.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.408e-05/0.1438, allocations: 7.938 kB / 360.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.1439, allocations: 23.89 kB / 360.2 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002977/0.1442, allocations: 55.86 kB / 360.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002126/0.1444, allocations: 87.84 kB / 360.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.1446, allocations: 36.81 kB / 360.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001648/0.1447, allocations: 51.83 kB / 360.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001085/0.1449, allocations: 59.75 kB / 360.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.158e-05/0.1449, allocations: 8 kB / 360.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.695e-05/0.145, allocations: 15.92 kB / 360.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.807e-05/0.145, allocations: 23.92 kB / 360.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.906e-05/0.1451, allocations: 53.62 kB / 360.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.1452, allocations: 91.97 kB / 360.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1452, allocations: 0 / 360.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1452, allocations: 0 / 360.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.1453, allocations: 0 / 360.7 MB, free: 11.52 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.000699/0.146, allocations: 466.3 kB / 361.1 MB, free: 11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.146, allocations: 8.031 kB / 361.1 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.369e-05/0.1461, allocations: 38.56 kB / 361.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002329/0.1463, allocations: 35.88 kB / 361.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001953/0.1465, allocations: 210.8 kB / 361.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.327e-05/0.1465, allocations: 4 kB / 361.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.329e-05/0.1466, allocations: 16 kB / 361.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004372/0.147, allocations: 181.5 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.1471, allocations: 4 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.925e-05/0.1471, allocations: 3.984 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.1471, allocations: 0 / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003527/0.1475, allocations: 123.9 kB / 361.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006258/0.1481, allocations: 432.3 kB / 362.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005886/0.1487, allocations: 226.4 kB / 362.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.118e-05/0.1487, allocations: 4 kB / 362.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004544/0.1492, allocations: 193.6 kB / 362.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.1492, allocations: 0 / 362.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.001059/0.1503, allocations: 405.4 kB / 363 MB, free: 9.027 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.1503, allocations: 59.41 kB / 363 MB, free: 8.957 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.1505, allocations: 152.6 kB / 363.2 MB, free: 8.797 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.1505, allocations: 37.64 kB / 363.2 MB, free: 8.754 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.296e-05/0.1506, allocations: 96.52 kB / 363.3 MB, free: 8.656 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.095e-05/0.1506, allocations: 43.39 kB / 363.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.556e-06/0.1506, allocations: 8 kB / 363.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.1507, allocations: 326.8 kB / 363.7 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.1509, allocations: 43.97 kB / 363.7 MB, free: 8.234 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.151, allocations: 122.3 kB / 363.9 MB, free: 8.086 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001315/0.1512, allocations: 63.92 kB / 363.9 MB, free: 8.023 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/0.1512, allocations: 0 / 363.9 MB, free: 8.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003885/0.1516, allocations: 213.2 kB / 364.1 MB, free: 7.809 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.1516, allocations: 6.5 kB / 364.1 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.1516, allocations: 4 kB / 364.1 MB, free: 7.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.1516, allocations: 7.938 kB / 364.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/0.1518, allocations: 44.19 kB / 364.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/0.1518, allocations: 7.953 kB / 364.2 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.152, allocations: 23.78 kB / 364.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.863e-05/0.152, allocations: 8 kB / 364.2 MB, free: 7.711 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.0001412/0.1521, allocations: 139.5 kB / 364.4 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.454e-05/0.1522, allocations: 11.91 kB / 364.4 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007652/0.1529, allocations: 316.5 kB / 364.7 MB, free: 7.234 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.1529, allocations: 4 kB / 364.7 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.153, allocations: 4 kB / 364.7 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.153, allocations: 7.953 kB / 364.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.154, allocations: 0.6076 MB / 365.3 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.154, allocations: 3.984 kB / 365.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.1541, allocations: 12 kB / 365.3 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1541, allocations: 0 / 365.3 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.1542, allocations: 11.92 kB / 365.3 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.1542, allocations: 3.953 kB / 365.3 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1542, allocations: 0 / 365.3 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.1552, allocations: 0.5148 MB / 365.9 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.728e-05/0.1553, allocations: 97 kB / 365.9 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.762e-05/0.1553, allocations: 8 kB / 366 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/0.1555, allocations: 39.97 kB / 366 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.638e-05/0.1556, allocations: 15.92 kB / 366 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.1556, allocations: 12 kB / 366 MB, free: 5.805 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.179e-05/0.1557, allocations: 103.2 kB / 366.1 MB, free: 5.703 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1557, allocations: 0 / 366.1 MB, free: 5.703 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000279/0.156, allocations: 31.94 kB / 366.2 MB, free: 5.672 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.001161/0.1571, allocations: 1.024 MB / 367.2 MB, free: 4.629 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004439/0.1576, allocations: 187.8 kB / 367.4 MB, free: 4.445 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1576, allocations: 0 / 367.4 MB, free: 4.445 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002712/0.1579, allocations: 112.4 kB / 367.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001653/0.158, allocations: 7.953 kB / 367.5 MB, free: 4.328 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.1595, allocations: 1.995 MB / 369.5 MB, free: 2.242 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.1598, allocations: 0.7083 MB / 370.2 MB, free: 1.508 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.599e-05/0.1599, allocations: 16.62 kB / 370.2 MB, free: 1.488 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.507e-05/0.1599, allocations: 35.75 kB / 370.2 MB, free: 1.453 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1599, allocations: 0 / 370.2 MB, free: 1.453 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2155/0.3755, allocations: 2.308 MB / 372.5 MB, free: 18.92 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001318/0.3756, allocations: 180.4 kB / 372.7 MB, free: 18.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.848/2.223, allocations: 1.188 kB / 372.7 MB, free: 18.68 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)