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.285/2.285, allocations: 387.1 MB / 399.7 MB, free: 9.488 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.001072/0.001072, allocations: 192.1 kB / 492.3 MB, free: 0.6016 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.409/1.409, allocations: 221.3 MB / 0.7871 GB, free: 12.9 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009841/0.0009841, allocations: 99.88 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.101e-05/4.128e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2412, allocations: 142.3 MB / 1.212 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8314/1.073, allocations: 149.7 MB / 1.359 GB, free: 19.12 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001794/1.073, allocations: 67.09 kB / 1.359 GB, free: 19.12 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007609/1.08, allocations: 2.593 MB / 1.361 GB, free: 34.7 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.994e-06/1.081, allocations: 0 / 1.361 GB, free: 34.7 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.352e-06/1.081, allocations: 3.938 kB / 1.361 GB, free: 34.7 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.0003629/1.081, allocations: 407.6 kB / 1.362 GB, free: 34.3 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/1.081, allocations: 11.53 kB / 1.362 GB, free: 34.3 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.118e-05/1.081, allocations: 35.84 kB / 1.362 GB, free: 34.26 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.689e-05/1.081, allocations: 10.47 kB / 1.362 GB, free: 34.26 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.269e-05/1.081, allocations: 174.8 kB / 1.362 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/1.081, allocations: 5.375 kB / 1.362 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.238e-05/1.081, allocations: 15.31 kB / 1.362 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001065/1.081, allocations: 50.84 kB / 1.362 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-06/1.081, allocations: 0 / 1.362 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-06/1.081, allocations: 0 / 1.362 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/1.081, allocations: 3.844 kB / 1.362 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.36e-05/1.081, allocations: 22 kB / 1.362 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003875/1.082, allocations: 319.3 kB / 1.362 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.294e-05/1.082, allocations: 45.27 kB / 1.362 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.996e-05/1.082, allocations: 19.33 kB / 1.362 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/1.082, allocations: 5.344 kB / 1.362 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001172/1.082, allocations: 74.97 kB / 1.362 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/1.082, allocations: 0 / 1.362 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0001908/1.082, allocations: 81.06 kB / 1.362 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.327e-05/1.082, allocations: 66.2 kB / 1.363 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.14e-05/1.082, allocations: 103 kB / 1.363 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/1.082, allocations: 28.83 kB / 1.363 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.321e-05/1.082, allocations: 97.19 kB / 1.363 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.739e-05/1.082, allocations: 22.67 kB / 1.363 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.112e-05/1.082, allocations: 0 / 1.363 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.592e-05/1.083, allocations: 321.4 kB / 1.363 GB, free: 33 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.504e-05/1.083, allocations: 42.02 kB / 1.363 GB, free: 33 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.895e-05/1.083, allocations: 62.33 kB / 1.363 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.405e-05/1.083, allocations: 65.94 kB / 1.363 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/1.083, allocations: 0 / 1.363 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000256/1.083, allocations: 170.5 kB / 1.363 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/1.083, allocations: 36.39 kB / 1.363 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/1.083, allocations: 0.5312 kB / 1.363 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/1.083, allocations: 4 kB / 1.363 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/1.083, allocations: 17.97 kB / 1.363 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/1.083, allocations: 3.953 kB / 1.363 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002049/1.083, allocations: 54.39 kB / 1.364 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/1.083, allocations: 9.781 kB / 1.364 GB, free: 32.81 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 6.364e-05/1.084, allocations: 109.6 kB / 1.364 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.19e-05/1.084, allocations: 5.125 kB / 1.364 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001472/1.084, allocations: 93.27 kB / 1.364 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/1.084, allocations: 0 / 1.364 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/1.084, allocations: 1.406 kB / 1.364 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/1.084, allocations: 3.953 kB / 1.364 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002162/1.084, allocations: 340.9 kB / 1.364 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/1.084, allocations: 7.938 kB / 1.364 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.071e-05/1.084, allocations: 11.02 kB / 1.364 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/1.084, allocations: 0 / 1.364 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/1.084, allocations: 1.406 kB / 1.364 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/1.084, allocations: 3.812 kB / 1.364 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/1.084, allocations: 3.953 kB / 1.364 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001362/1.084, allocations: 183.4 kB / 1.364 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.8e-05/1.084, allocations: 81.02 kB / 1.364 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/1.084, allocations: 5.484 kB / 1.364 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.399e-05/1.084, allocations: 6.797 kB / 1.364 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.131e-05/1.084, allocations: 9.781 kB / 1.364 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/1.084, allocations: 9.031 kB / 1.364 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.016e-05/1.085, allocations: 90.03 kB / 1.364 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.085, allocations: 4 kB / 1.364 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002433/1.085, allocations: 32.61 kB / 1.364 GB, free: 32.02 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.0003821/1.085, allocations: 0.7167 MB / 1.365 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001875/1.085, allocations: 141.1 kB / 1.365 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/1.085, allocations: 128 / 1.365 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.695e-05/1.085, allocations: 38.2 kB / 1.365 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001888/1.086, allocations: 15.66 kB / 1.365 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003642/1.086, allocations: 137.2 kB / 1.366 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/1.086, allocations: 0.6933 MB / 1.366 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.086e-05/1.086, allocations: 192 / 1.366 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.309e-05/1.086, allocations: 23.94 kB / 1.366 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.086, allocations: 0 / 1.366 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01715/1.103, allocations: 2.1 MB / 1.368 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001888/1.104, allocations: 157.2 kB / 1.368 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.512/2.616, allocations: 0 / 1.368 GB, free: 30.01 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