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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.452/2.452, allocations: 390.3 MB / 0.6653 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003296/0.0003298, allocations: 11.98 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7702/0.7705, allocations: 142.3 MB / 0.9536 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0008184/0.7714, allocations: 451.1 kB / 0.954 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001184/0.7726, allocations: 1.146 MB / 0.9551 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.85e-05/0.7727, allocations: 1.125 kB / 0.9551 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.625e-05/0.7727, allocations: 0 / 0.9551 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.192e-05/0.7728, allocations: 9.922 kB / 0.9552 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004469/0.7732, allocations: 117.8 kB / 0.9553 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.938e-05/0.7733, allocations: 62.2 kB / 0.9553 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.215e-05/0.7734, allocations: 16.8 kB / 0.9553 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.438e-05/0.7735, allocations: 43.64 kB / 0.9554 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.348e-05/0.7736, allocations: 34.52 kB / 0.9554 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.7736, allocations: 4.938 kB / 0.9554 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.155e-05/0.7737, allocations: 14.92 kB / 0.9554 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.935e-05/0.7737, allocations: 10.64 kB / 0.9555 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.085e-05/0.7738, allocations: 36.98 kB / 0.9555 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.7739, allocations: 73.75 kB / 0.9556 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.7739, allocations: 0 / 0.9556 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.863e-06/0.7739, allocations: 4 kB / 0.9556 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.628e-06/0.7739, allocations: 0.6562 kB / 0.9556 GB, free: 6.527 MB / 0.7169 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.0004917/0.7744, allocations: 403.5 kB / 0.9559 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.7744, allocations: 9.531 kB / 0.956 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.682e-05/0.7745, allocations: 31.66 kB / 0.956 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.257e-05/0.7745, allocations: 9.391 kB / 0.956 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.043e-05/0.7746, allocations: 166.3 kB / 0.9562 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.7746, allocations: 10.59 kB / 0.9562 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/0.7747, allocations: 14.42 kB / 0.9562 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001955/0.7749, allocations: 68.81 kB / 0.9562 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.7749, allocations: 3.938 kB / 0.9562 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.7749, allocations: 5.031 kB / 0.9563 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.87e-06/0.7749, allocations: 1.094 kB / 0.9563 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.7751, allocations: 60.34 kB / 0.9563 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004123/0.7755, allocations: 319 kB / 0.9566 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001617/0.7757, allocations: 62.42 kB / 0.9567 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.7757, allocations: 1.188 kB / 0.9567 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/0.776, allocations: 99.47 kB / 0.9568 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.776, allocations: 0 / 0.9568 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.00047/0.7765, allocations: 147 kB / 0.9569 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.7765, allocations: 60.59 kB / 0.957 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.697e-05/0.7766, allocations: 109.7 kB / 0.9571 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.7766, allocations: 32.11 kB / 0.9571 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.338e-05/0.7767, allocations: 95.84 kB / 0.9572 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.741e-05/0.7767, allocations: 14.14 kB / 0.9572 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.324e-05/0.7767, allocations: 5.375 kB / 0.9572 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.547e-05/0.7768, allocations: 317.5 kB / 0.9575 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.777, allocations: 54 kB / 0.9576 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001868/0.7772, allocations: 81.27 kB / 0.9576 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.7773, allocations: 90.58 kB / 0.9577 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.7773, allocations: 0 / 0.9577 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000392/0.7777, allocations: 199.2 kB / 0.9579 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.219e-05/0.7778, allocations: 41.91 kB / 0.958 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.7778, allocations: 5.031 kB / 0.958 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.7778, allocations: 1.094 kB / 0.958 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.7779, allocations: 18.98 kB / 0.958 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.7779, allocations: 2.312 kB / 0.958 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002366/0.7782, allocations: 55.42 kB / 0.958 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.7782, allocations: 14.03 kB / 0.9581 GB, free: 4.242 MB / 0.7169 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 () * Number of clocked 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 7.303e-05/0.7783, allocations: 119.1 kB / 0.9582 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.122e-05/0.7783, allocations: 3.156 kB / 0.9582 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002891/0.7786, allocations: 128.3 kB / 0.9583 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.7786, allocations: 5.75 kB / 0.9583 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.7786, allocations: 0 / 0.9583 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.7786, allocations: 3.984 kB / 0.9583 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003484/0.779, allocations: 375.5 kB / 0.9587 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.779, allocations: 0 / 0.9587 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.233e-05/0.779, allocations: 9.656 kB / 0.9587 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.7791, allocations: 3.953 kB / 0.9587 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.7791, allocations: 5.109 kB / 0.9587 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.7791, allocations: 0.9375 kB / 0.9587 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.7791, allocations: 480 / 0.9587 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002774/0.7794, allocations: 219.9 kB / 0.9589 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.833e-05/0.7794, allocations: 84.33 kB / 0.959 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.7794, allocations: 7.953 kB / 0.959 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.4e-05/0.7795, allocations: 14.86 kB / 0.959 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.525e-05/0.7796, allocations: 2.438 kB / 0.959 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.7796, allocations: 6.234 kB / 0.959 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.877e-05/0.7796, allocations: 86.12 kB / 0.9591 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7796, allocations: 0 / 0.9591 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002655/0.7799, allocations: 24.34 kB / 0.9591 GB, free: 3.293 MB / 0.7169 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) * Number of clocked states: 0 () * 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.0005063/0.7804, allocations: 0.756 MB / 0.9598 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003509/0.7808, allocations: 175.3 kB / 0.96 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.7808, allocations: 9.281 kB / 0.96 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.7809, allocations: 43.28 kB / 0.9601 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002325/0.7811, allocations: 15.81 kB / 0.9601 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005852/0.7817, allocations: 0.8392 MB / 0.9609 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001147/0.7819, allocations: 0.6925 MB / 0.9616 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.101e-05/0.7819, allocations: 3.156 kB / 0.9616 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.619e-05/0.7819, allocations: 22.95 kB / 0.9616 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.7819, allocations: 4 kB / 0.9616 GB, free: 0.8516 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01294/0.7949, allocations: 2.071 MB / 0.9636 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001943/0.7951, allocations: 186.5 kB / 0.9638 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.795/2.59, allocations: 0 / 0.9638 GB, free: 15.63 MB / 0.7325 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