Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.513/2.513, allocations: 387.4 MB / 394.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 176.8 kB / 487.4 MB, free: 5.047 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 221.5 MB / 0.7824 GB, free: 0.9922 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008993/0.0008993, allocations: 83.91 kB / 0.9219 GB, free: 2.238 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.736e-05/2.738e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2583, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9533/1.212, allocations: 149 MB / 1.352 GB, free: 17.96 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/1.212, allocations: 68.28 kB / 1.352 GB, free: 17.96 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.008558/1.221, allocations: 2.589 MB / 1.354 GB, free: 33.53 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.573e-06/1.221, allocations: 0 / 1.354 GB, free: 33.53 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.344e-06/1.221, allocations: 0 / 1.354 GB, free: 33.53 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005227/1.221, allocations: 413.8 kB / 1.355 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/1.221, allocations: 7.719 kB / 1.355 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.376e-05/1.221, allocations: 8.469 kB / 1.355 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/1.221, allocations: 177.6 kB / 1.355 GB, free: 32.92 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/1.221, allocations: 7.781 kB / 1.355 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.807e-05/1.221, allocations: 4.438 kB / 1.355 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000121/1.222, allocations: 19.05 kB / 1.355 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.591e-05/1.222, allocations: 46.44 kB / 1.355 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/1.222, allocations: 0 / 1.355 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/1.222, allocations: 0.6562 kB / 1.355 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/1.222, allocations: 0 / 1.355 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004792/1.222, allocations: 302.7 kB / 1.355 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.924e-05/1.222, allocations: 37.78 kB / 1.355 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.027e-05/1.222, allocations: 12.81 kB / 1.355 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.712e-05/1.222, allocations: 3.844 kB / 1.355 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001477/1.222, allocations: 72.41 kB / 1.355 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/1.222, allocations: 4 kB / 1.355 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002124/1.223, allocations: 80.59 kB / 1.355 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.505e-05/1.223, allocations: 56.05 kB / 1.355 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.622e-05/1.223, allocations: 100.8 kB / 1.355 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/1.223, allocations: 30.25 kB / 1.355 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.721e-05/1.223, allocations: 93.14 kB / 1.356 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.122e-05/1.223, allocations: 16.31 kB / 1.356 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.4e-05/1.223, allocations: 3.844 kB / 1.356 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001323/1.223, allocations: 320.1 kB / 1.356 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.782e-05/1.223, allocations: 37.58 kB / 1.356 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.384e-05/1.223, allocations: 64.03 kB / 1.356 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001925/1.224, allocations: 44.34 kB / 1.356 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/1.224, allocations: 0 / 1.356 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003214/1.224, allocations: 142 kB / 1.356 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.537e-05/1.224, allocations: 40.19 kB / 1.356 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/1.224, allocations: 4.406 kB / 1.356 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/1.224, allocations: 3.938 kB / 1.356 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/1.224, allocations: 15.12 kB / 1.356 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/1.224, allocations: 0.5625 kB / 1.356 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002114/1.224, allocations: 49.33 kB / 1.356 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.26e-05/1.224, allocations: 9.172 kB / 1.356 GB, free: 31.79 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,triggeredMax.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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 8.451e-05/1.224, allocations: 113.1 kB / 1.356 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001064/1.225, allocations: 80.22 kB / 1.356 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.076e-05/1.225, allocations: 7.75 kB / 1.356 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001566/1.225, allocations: 85.47 kB / 1.357 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/1.225, allocations: 4 kB / 1.357 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/1.225, allocations: 0 / 1.357 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/1.225, allocations: 4.609 kB / 1.357 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002375/1.225, allocations: 305.8 kB / 1.357 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/1.225, allocations: 0 / 1.357 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.169e-05/1.225, allocations: 15.03 kB / 1.357 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/1.225, allocations: 0 / 1.357 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/1.225, allocations: 4.75 kB / 1.357 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/1.225, allocations: 4 kB / 1.357 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.225, allocations: 3.953 kB / 1.357 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001416/1.225, allocations: 175.9 kB / 1.357 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.287e-05/1.225, allocations: 81.67 kB / 1.357 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/1.225, allocations: 4.547 kB / 1.357 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.524e-05/1.225, allocations: 6.859 kB / 1.357 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.511e-05/1.225, allocations: 14.12 kB / 1.357 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-06/1.226, allocations: 8.344 kB / 1.357 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.087e-05/1.226, allocations: 84.17 kB / 1.357 GB, free: 31 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.226, allocations: 0 / 1.357 GB, free: 31 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002645/1.226, allocations: 32.03 kB / 1.357 GB, free: 31 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0004766/1.226, allocations: 0.7223 MB / 1.358 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001983/1.227, allocations: 131 kB / 1.358 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/1.227, allocations: 3.812 kB / 1.358 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.786e-05/1.227, allocations: 26.19 kB / 1.358 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002081/1.227, allocations: 14.28 kB / 1.358 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003999/1.227, allocations: 124.9 kB / 1.358 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/1.227, allocations: 0.6958 MB / 1.359 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.469e-05/1.228, allocations: 5.297 kB / 1.359 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.067e-05/1.228, allocations: 20.02 kB / 1.359 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.228, allocations: 0 / 1.359 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01904/1.247, allocations: 1.728 MB / 1.361 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/1.247, allocations: 148 kB / 1.361 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.57/2.817, allocations: 0 / 1.361 GB, free: 29.12 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat does not exist to compare? outputFormat=mat