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.0008906/0.0008903, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0009509/0.000951, allocations: 172.7 kB / 15.95 MB, free: 208 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.378/1.378, allocations: 223.3 MB / 240 MB, free: 5.422 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.44/2.44, allocations: 390.4 MB / 0.6655 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003811/0.0003812, allocations: 8 kB / 0.8149 GB, free: 14.08 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7395/0.7399, allocations: 142.3 MB / 0.9539 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0009057/0.7409, allocations: 451.3 kB / 0.9543 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001203/0.7421, allocations: 1.164 MB / 0.9554 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.893e-05/0.7421, allocations: 1.156 kB / 0.9554 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.854e-05/0.7422, allocations: 7.922 kB / 0.9554 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.791e-05/0.7422, allocations: 4.906 kB / 0.9554 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004439/0.7427, allocations: 121.3 kB / 0.9555 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001067/0.7428, allocations: 92.88 kB / 0.9556 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.117e-05/0.7429, allocations: 8.344 kB / 0.9556 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.233e-05/0.743, allocations: 44.11 kB / 0.9557 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.608e-05/0.743, allocations: 33.61 kB / 0.9557 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.259e-05/0.7431, allocations: 6.281 kB / 0.9557 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.194e-05/0.7431, allocations: 19.02 kB / 0.9557 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.025e-05/0.7432, allocations: 14.62 kB / 0.9558 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.237e-05/0.7432, allocations: 33.33 kB / 0.9558 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001046/0.7433, allocations: 68.5 kB / 0.9559 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.7433, allocations: 5.406 kB / 0.9559 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.522e-06/0.7433, allocations: 3.938 kB / 0.9559 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.7434, allocations: 0 / 0.9559 GB, free: 6.508 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.0004776/0.7438, allocations: 398.6 kB / 0.9562 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.7439, allocations: 8.625 kB / 0.9563 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.51e-05/0.7439, allocations: 35.77 kB / 0.9563 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.134e-05/0.744, allocations: 9.266 kB / 0.9563 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.949e-05/0.7441, allocations: 177.9 kB / 0.9565 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.7441, allocations: 2.969 kB / 0.9565 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.524e-05/0.7441, allocations: 6.125 kB / 0.9565 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001914/0.7443, allocations: 68.84 kB / 0.9565 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.7443, allocations: 5.094 kB / 0.9565 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.7444, allocations: 0 / 0.9565 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.7444, allocations: 1.062 kB / 0.9565 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001844/0.7446, allocations: 64.84 kB / 0.9566 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004228/0.745, allocations: 319.2 kB / 0.9569 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001501/0.7451, allocations: 63.12 kB / 0.957 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.638e-05/0.7453, allocations: 34.64 kB / 0.957 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.7453, allocations: 3.938 kB / 0.957 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00022/0.7455, allocations: 103.9 kB / 0.9571 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.7455, allocations: 0 / 0.9571 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004062/0.7459, allocations: 155.9 kB / 0.9573 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.746, allocations: 56.66 kB / 0.9573 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.358e-05/0.746, allocations: 115.9 kB / 0.9574 GB, free: 5 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.851e-05/0.7461, allocations: 28.55 kB / 0.9574 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.354e-05/0.7461, allocations: 96.09 kB / 0.9575 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.7461, allocations: 14.97 kB / 0.9576 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.234e-05/0.7462, allocations: 5.156 kB / 0.9576 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.502e-05/0.7462, allocations: 321.2 kB / 0.9579 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001389/0.7464, allocations: 50.06 kB / 0.9579 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.7465, allocations: 81.52 kB / 0.958 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001425/0.7467, allocations: 82.89 kB / 0.9581 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.7467, allocations: 0 / 0.9581 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003682/0.7471, allocations: 206.6 kB / 0.9583 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.249e-05/0.7471, allocations: 41.53 kB / 0.9583 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.7471, allocations: 5.484 kB / 0.9583 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.7471, allocations: 1.125 kB / 0.9583 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.205e-05/0.7472, allocations: 11.72 kB / 0.9583 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.974e-06/0.7472, allocations: 5.547 kB / 0.9583 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.7475, allocations: 50.5 kB / 0.9584 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.7475, allocations: 9.953 kB / 0.9584 GB, free: 4.203 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.4e-05/0.7476, allocations: 123.8 kB / 0.9585 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.064e-05/0.7476, allocations: 7.125 kB / 0.9585 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002679/0.7478, allocations: 127.5 kB / 0.9586 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.7479, allocations: 1.781 kB / 0.9586 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.7479, allocations: 0 / 0.9586 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.7479, allocations: 1.75 kB / 0.9586 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003382/0.7482, allocations: 374.5 kB / 0.959 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.7482, allocations: 0 / 0.959 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.851e-05/0.7483, allocations: 17.56 kB / 0.959 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.7483, allocations: 4 kB / 0.959 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.7483, allocations: 5.844 kB / 0.959 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.7483, allocations: 1.375 kB / 0.959 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.7483, allocations: 0 / 0.959 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002588/0.7486, allocations: 211.8 kB / 0.9592 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.09e-05/0.7486, allocations: 82.39 kB / 0.9593 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.7487, allocations: 13.27 kB / 0.9593 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.206e-05/0.7488, allocations: 10.86 kB / 0.9593 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.949e-05/0.7488, allocations: 14.67 kB / 0.9593 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.7488, allocations: 2.75 kB / 0.9593 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.327e-05/0.7489, allocations: 86.16 kB / 0.9594 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7489, allocations: 4 kB / 0.9594 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002537/0.7491, allocations: 23.23 kB / 0.9594 GB, free: 3.242 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.0004803/0.7496, allocations: 0.7481 MB / 0.9602 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003362/0.7499, allocations: 180 kB / 0.9604 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.75, allocations: 0 / 0.9604 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.7501, allocations: 51.28 kB / 0.9604 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.7504, allocations: 16.75 kB / 0.9604 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.7515, allocations: 0.6474 MB / 0.961 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001214/0.7516, allocations: 0.684 MB / 0.9617 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.412e-05/0.7516, allocations: 4.156 kB / 0.9617 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.818e-05/0.7517, allocations: 22.42 kB / 0.9617 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of SimCode: time 8.21e-07/0.7517, allocations: 0 / 0.9617 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0121/0.7638, allocations: 2.116 MB / 0.9638 GB, free: 148 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000169/0.764, allocations: 194.3 kB / 0.964 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/2.55, allocations: 0 / 0.964 GB, free: 15.91 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