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.0008365/0.0008365, allocations: 92.42 kB / 17.35 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009713/0.0009715, allocations: 203.2 kB / 18.29 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 227.7 MB / 246.8 MB, free: 9.68 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002123/0.0002123, allocations: 8 kB / 307.8 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08109/0.08132, allocations: 51.53 MB / 359.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.001667/0.08303, allocations: 1.439 MB / 360.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001026/0.08408, allocations: 0.6507 MB / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.573e-05/0.08418, allocations: 3.938 kB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.223e-05/0.08428, allocations: 7.922 kB / 361.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.528e-05/0.08433, allocations: 11.88 kB / 361.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002599/0.0846, allocations: 75.84 kB / 361.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001624/0.08477, allocations: 143.5 kB / 361.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.08489, allocations: 37.42 kB / 361.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.08503, allocations: 51.83 kB / 361.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.369e-05/0.08513, allocations: 63.67 kB / 361.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.017e-05/0.08516, allocations: 8 kB / 361.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.181e-05/0.08522, allocations: 8 kB / 361.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.71e-05/0.08525, allocations: 27.91 kB / 361.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.232e-05/0.08534, allocations: 93.41 kB / 362 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001717/0.08552, allocations: 131.8 kB / 362.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.08553, allocations: 0 / 362.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.08554, allocations: 0 / 362.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.08555, allocations: 0 / 362.1 MB, free: 10.23 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.0005889/0.08615, allocations: 466.5 kB / 362.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.08619, allocations: 8.031 kB / 362.6 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.249e-05/0.08625, allocations: 46.73 kB / 362.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002097/0.08647, allocations: 36.83 kB / 362.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002468/0.08673, allocations: 216.6 kB / 362.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.444e-05/0.08676, allocations: 4.375 kB / 362.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.871e-05/0.08684, allocations: 15.94 kB / 362.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004363/0.08729, allocations: 185.5 kB / 363.1 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.0873, allocations: 0 / 363.1 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/0.08733, allocations: 0 / 363.1 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.08734, allocations: 4 kB / 363.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003653/0.08771, allocations: 138.7 kB / 363.2 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006804/0.0884, allocations: 428.5 kB / 363.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005955/0.089, allocations: 234.4 kB / 363.8 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002983/0.08931, allocations: 112.8 kB / 363.9 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.08934, allocations: 4 kB / 364 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004237/0.08977, allocations: 187.2 kB / 364.1 MB, free: 8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.08978, allocations: 0 / 364.1 MB, free: 8 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.00101/0.0908, allocations: 420 kB / 364.5 MB, free: 7.586 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/0.09085, allocations: 63.34 kB / 364.6 MB, free: 7.512 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.09097, allocations: 145.8 kB / 364.8 MB, free: 7.359 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.091, allocations: 29.7 kB / 364.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.853e-05/0.09106, allocations: 108.4 kB / 364.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.134e-05/0.09111, allocations: 43.53 kB / 364.9 MB, free: 7.172 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.233e-05/0.09115, allocations: 33.64 kB / 365 MB, free: 7.133 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.09127, allocations: 322.8 kB / 365.3 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.0914, allocations: 47.97 kB / 365.3 MB, free: 6.762 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.09156, allocations: 122.3 kB / 365.4 MB, free: 6.613 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002843/0.09185, allocations: 180.4 kB / 365.6 MB, free: 6.406 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.09186, allocations: 3.938 kB / 365.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003679/0.09223, allocations: 213.5 kB / 365.8 MB, free: 6.188 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.09226, allocations: 4 kB / 365.8 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.09227, allocations: 4 kB / 365.8 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.09229, allocations: 7.938 kB / 365.8 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001561/0.09245, allocations: 43.84 kB / 365.9 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.09247, allocations: 0 / 365.9 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.09258, allocations: 27.83 kB / 365.9 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.0926, allocations: 8 kB / 365.9 MB, free: 6.094 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.0001125/0.09271, allocations: 143.5 kB / 366.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.345e-05/0.09274, allocations: 15.81 kB / 366.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007295/0.09348, allocations: 322.2 kB / 366.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.09349, allocations: 4 kB / 366.4 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.0935, allocations: 0 / 366.4 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.09351, allocations: 3.984 kB / 366.4 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009194/0.09443, allocations: 0.6037 MB / 367 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.09445, allocations: 0 / 367 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.417e-05/0.09455, allocations: 19.98 kB / 367 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.09456, allocations: 0 / 367 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.09458, allocations: 11.98 kB / 367 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.09459, allocations: 7.938 kB / 367 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.0946, allocations: 4 kB / 367 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.09563, allocations: 0.521 MB / 367.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.359e-05/0.09569, allocations: 88.95 kB / 367.7 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.74e-05/0.09573, allocations: 11.98 kB / 367.7 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.09593, allocations: 44.03 kB / 367.7 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.668e-05/0.09598, allocations: 7.984 kB / 367.7 MB, free: 4.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.096, allocations: 15.92 kB / 367.7 MB, free: 4.176 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.057e-05/0.09607, allocations: 106.6 kB / 367.8 MB, free: 4.074 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.09607, allocations: 0 / 367.8 MB, free: 4.074 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002613/0.09634, allocations: 31.94 kB / 367.9 MB, free: 4.043 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.0975, allocations: 1.029 MB / 368.9 MB, free: 2.984 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004282/0.09794, allocations: 190.8 kB / 369.1 MB, free: 2.801 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.09795, allocations: 0.5625 kB / 369.1 MB, free: 2.801 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002559/0.09821, allocations: 107.9 kB / 369.2 MB, free: 2.695 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002241/0.09845, allocations: 8 kB / 369.2 MB, free: 2.688 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002179/0.1006, allocations: 2.034 MB / 371.2 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1428/0.2435, allocations: 0.7009 MB / 371.9 MB, free: 18.87 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.932e-05/0.2436, allocations: 14.61 kB / 371.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.279e-05/0.2437, allocations: 37.66 kB / 372 MB, free: 18.86 MB / 302.1 MB Notification: Performance of SimCode: time 9.92e-07/0.2437, allocations: 3.469 kB / 372 MB, free: 18.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01323/0.2569, allocations: 2.415 MB / 374.4 MB, free: 18.69 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001414/0.2571, allocations: 198.8 kB / 374.6 MB, free: 18.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.647/1.904, allocations: 0 / 374.6 MB, free: 18.43 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)