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.001863/0.001862, allocations: 118.8 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.002824/0.002823, allocations: 202 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.524/1.524, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001539, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3743/0.3758, allocations: 50.54 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003793/0.3797, allocations: 1.734 MB / 410.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001389/0.3811, allocations: 0.6583 MB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.3813, allocations: 4 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.3815, allocations: 15.8 kB / 411.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.926e-05/0.3815, allocations: 15.8 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004035/0.382, allocations: 91.75 kB / 411.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002145/0.3822, allocations: 143.6 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.3823, allocations: 41.42 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001671/0.3825, allocations: 63.77 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001071/0.3826, allocations: 71.67 kB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.565e-05/0.3827, allocations: 12 kB / 411.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.962e-05/0.3827, allocations: 20 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.244e-05/0.3828, allocations: 35.91 kB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.712e-05/0.3829, allocations: 67.7 kB / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.3831, allocations: 141.2 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3831, allocations: 0 / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3831, allocations: 0 / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.3831, allocations: 3.938 kB / 411.8 MB, free: 14.44 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.0007978/0.3839, allocations: 494.3 kB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.384, allocations: 8.031 kB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.726e-05/0.3841, allocations: 42.73 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002502/0.3843, allocations: 32.73 kB / 412.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003221/0.3846, allocations: 215.9 kB / 412.6 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/0.3847, allocations: 8.375 kB / 412.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.193e-05/0.3847, allocations: 19.92 kB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004714/0.3852, allocations: 168.6 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.3852, allocations: 0 / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.051e-05/0.3853, allocations: 8 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.3853, allocations: 0 / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004406/0.3857, allocations: 99.84 kB / 412.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007809/0.3865, allocations: 424.5 kB / 413.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000606/0.3871, allocations: 194.3 kB / 413.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003041/0.3874, allocations: 96.78 kB / 413.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.3875, allocations: 0 / 413.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004677/0.3879, allocations: 171.2 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.388, allocations: 0 / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001075/0.389, allocations: 349.3 kB / 414.1 MB, free: 11.97 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.511e-05/0.3891, allocations: 63.34 kB / 414.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.3893, allocations: 141.8 kB / 414.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.194e-05/0.3893, allocations: 33.7 kB / 414.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.925e-05/0.3894, allocations: 104.5 kB / 414.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.972e-05/0.3895, allocations: 47.38 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.831e-05/0.3895, allocations: 45.7 kB / 414.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.3897, allocations: 326.8 kB / 414.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.3898, allocations: 47.97 kB / 414.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/0.39, allocations: 116.5 kB / 415 MB, free: 10.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000279/0.3903, allocations: 168.4 kB / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.3903, allocations: 0 / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003779/0.3907, allocations: 217.3 kB / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.3907, allocations: 4 kB / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.3907, allocations: 4 kB / 415.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.3907, allocations: 7.938 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.3909, allocations: 39.91 kB / 415.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.3909, allocations: 4 kB / 415.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.391, allocations: 19.91 kB / 415.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.391, allocations: 11.98 kB / 415.5 MB, free: 10.48 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.0001363/0.3912, allocations: 147.4 kB / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.677e-05/0.3912, allocations: 11.91 kB / 415.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007242/0.392, allocations: 274.2 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.392, allocations: 4 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.392, allocations: 7.938 kB / 415.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.392, allocations: 0 / 415.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009604/0.393, allocations: 0.5719 MB / 416.5 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.393, allocations: 4 kB / 416.5 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.3931, allocations: 15.98 kB / 416.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.3931, allocations: 4 kB / 416.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.3931, allocations: 3.984 kB / 416.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3931, allocations: 0 / 416.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.3931, allocations: 7.938 kB / 416.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.3943, allocations: 467.1 kB / 417 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.099e-05/0.3944, allocations: 88.95 kB / 417.1 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.136e-05/0.3944, allocations: 12.06 kB / 417.1 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000199/0.3946, allocations: 27.95 kB / 417.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.138e-05/0.3947, allocations: 11.98 kB / 417.1 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-05/0.3947, allocations: 4 kB / 417.1 MB, free: 8.734 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001005/0.3948, allocations: 110.8 kB / 417.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.426e-06/0.3948, allocations: 0 / 417.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003/0.3951, allocations: 31.94 kB / 417.3 MB, free: 8.598 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.001239/0.3964, allocations: 0.9854 MB / 418.3 MB, free: 7.586 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004715/0.3969, allocations: 163.7 kB / 418.4 MB, free: 7.426 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3969, allocations: 0.625 kB / 418.4 MB, free: 7.426 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002691/0.3971, allocations: 102.7 kB / 418.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.3974, allocations: 4 kB / 418.5 MB, free: 7.324 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002545/0.4, allocations: 1.954 MB / 420.5 MB, free: 5.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.4003, allocations: 0.7084 MB / 421.2 MB, free: 4.496 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.843e-05/0.4004, allocations: 17.08 kB / 421.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.111e-05/0.4005, allocations: 35.42 kB / 421.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4005, allocations: 0 / 421.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02281/0.4233, allocations: 2.819 MB / 424.1 MB, free: 1.715 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.673/8.097, allocations: 8.547 kB / 424.1 MB, free: 1.707 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)