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.001192/0.001192, allocations: 117.6 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001352, allocations: 199.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3441/0.3453, allocations: 50.54 MB / 408.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.004898/0.3502, allocations: 1.73 MB / 410.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002028/0.3523, allocations: 0.6622 MB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.3525, allocations: 4 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001835/0.3527, allocations: 19.8 kB / 411.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.049e-05/0.3528, allocations: 11.81 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005779/0.3534, allocations: 87.75 kB / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003662/0.3538, allocations: 159.6 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.354, allocations: 25.44 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002769/0.3543, allocations: 67.77 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001809/0.3545, allocations: 67.67 kB / 411.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.814e-05/0.3546, allocations: 12 kB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001054/0.3547, allocations: 32 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.745e-05/0.3548, allocations: 31.89 kB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.3549, allocations: 67.7 kB / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003221/0.3553, allocations: 129.3 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.729e-06/0.3553, allocations: 3.984 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3553, allocations: 4 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.3553, allocations: 0 / 411.8 MB, free: 14.45 MB / 334.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.001057/0.3564, allocations: 490.3 kB / 412.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.985e-05/0.3565, allocations: 8.031 kB / 412.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.3e-05/0.3566, allocations: 50.67 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004002/0.357, allocations: 36.72 kB / 412.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000428/0.3574, allocations: 204.3 kB / 412.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.36e-05/0.3575, allocations: 16.36 kB / 412.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.56e-05/0.3576, allocations: 15.88 kB / 412.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000733/0.3583, allocations: 169.4 kB / 412.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.3584, allocations: 3.938 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.518e-05/0.3584, allocations: 0 / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.3584, allocations: 0 / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006286/0.3591, allocations: 99.91 kB / 412.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.3601, allocations: 424.5 kB / 413.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.3612, allocations: 190.4 kB / 413.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000517/0.3617, allocations: 96.72 kB / 413.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.3617, allocations: 0 / 413.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006908/0.3624, allocations: 175.2 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 2.755e-06/0.3625, allocations: 0 / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001826/0.3643, allocations: 349.3 kB / 414.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.176e-05/0.3644, allocations: 63.33 kB / 414.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002177/0.3646, allocations: 141.8 kB / 414.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.322e-05/0.3647, allocations: 33.7 kB / 414.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.3648, allocations: 104.5 kB / 414.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001645/0.365, allocations: 51.38 kB / 414.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.3652, allocations: 45.7 kB / 414.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.3654, allocations: 322.8 kB / 414.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.3656, allocations: 43.97 kB / 414.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003019/0.3659, allocations: 124.5 kB / 415 MB, free: 10.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000539/0.3665, allocations: 172.4 kB / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.3665, allocations: 0 / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000785/0.3673, allocations: 209.2 kB / 415.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.979e-05/0.3673, allocations: 6.812 kB / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.3674, allocations: 4 kB / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.955e-05/0.3674, allocations: 7.938 kB / 415.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003035/0.3677, allocations: 35.91 kB / 415.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.847e-05/0.3678, allocations: 4 kB / 415.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001956/0.368, allocations: 20.17 kB / 415.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.013e-05/0.368, allocations: 12 kB / 415.5 MB, free: 10.49 MB / 334.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.0002343/0.3683, allocations: 139.4 kB / 415.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.023e-05/0.3683, allocations: 11.91 kB / 415.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.3696, allocations: 282.2 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/0.3696, allocations: 7.984 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.3696, allocations: 0 / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.3696, allocations: 3.984 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/0.3714, allocations: 0.572 MB / 416.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.3714, allocations: 3.938 kB / 416.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001829/0.3716, allocations: 19.92 kB / 416.5 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.3716, allocations: 0 / 416.5 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.032e-05/0.3716, allocations: 7.984 kB / 416.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.3717, allocations: 4 kB / 416.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3717, allocations: 0 / 416.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001793/0.3735, allocations: 467.1 kB / 417 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.909e-05/0.3736, allocations: 88.95 kB / 417.1 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7e-05/0.3737, allocations: 11.98 kB / 417.1 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003395/0.374, allocations: 27.97 kB / 417.1 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.939e-05/0.3741, allocations: 7.984 kB / 417.1 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.373e-05/0.3741, allocations: 15.98 kB / 417.1 MB, free: 8.738 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001134/0.3743, allocations: 106.6 kB / 417.2 MB, free: 8.637 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.3743, allocations: 64 / 417.2 MB, free: 8.637 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005571/0.3749, allocations: 32 kB / 417.3 MB, free: 8.605 MB / 334.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.002066/0.3769, allocations: 0.9775 MB / 418.3 MB, free: 7.602 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008134/0.3778, allocations: 172.3 kB / 418.4 MB, free: 7.434 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3778, allocations: 0 / 418.4 MB, free: 7.434 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004845/0.3783, allocations: 91.88 kB / 418.5 MB, free: 7.344 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004349/0.3788, allocations: 11.38 kB / 418.5 MB, free: 7.336 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003983/0.3828, allocations: 1.969 MB / 420.5 MB, free: 5.227 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.3832, allocations: 0.7084 MB / 421.2 MB, free: 4.492 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.928e-05/0.3833, allocations: 13.08 kB / 421.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.3834, allocations: 35.42 kB / 421.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3835, allocations: 0 / 421.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02944/0.4129, allocations: 2.761 MB / 424 MB, free: 1.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.62/8.033, allocations: 4.547 kB / 424 MB, free: 1.766 MB / 334.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)