Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.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.Continuous.Validation.LessThreshold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold",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.0008837/0.0008835, allocations: 85.94 kB / 15.06 MB, free: 1.09 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.0008523/0.0008527, allocations: 168.7 kB / 15.95 MB, free: 204 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.479/1.479, allocations: 223.3 MB / 240 MB, free: 5.414 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.413/2.413, allocations: 390.4 MB / 0.6655 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004453/0.0004455, allocations: 12 kB / 0.8149 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7544/0.7549, allocations: 142.3 MB / 0.9539 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.001925/0.7569, allocations: 1.588 MB / 0.9554 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001392/0.7583, allocations: 1.023 MB / 0.9564 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.7584, allocations: 6.219 kB / 0.9564 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000367/0.7588, allocations: 105.3 kB / 0.9565 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002018/0.759, allocations: 84.73 kB / 0.9566 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003066/0.7593, allocations: 126.8 kB / 0.9567 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002156/0.7595, allocations: 178.8 kB / 0.9569 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.7597, allocations: 26.73 kB / 0.9569 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.7598, allocations: 76.12 kB / 0.957 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.7599, allocations: 86.12 kB / 0.9571 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.079e-05/0.7599, allocations: 7.25 kB / 0.9571 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001222/0.7601, allocations: 37.39 kB / 0.9571 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.864e-05/0.7601, allocations: 56.78 kB / 0.9572 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.632e-05/0.7602, allocations: 54.17 kB / 0.9572 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002126/0.7604, allocations: 213.6 kB / 0.9574 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.7604, allocations: 0 / 0.9574 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7604, allocations: 0 / 0.9574 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.7604, allocations: 0 / 0.9574 GB, free: 5.395 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006563/0.7611, allocations: 0.5204 MB / 0.9579 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.7611, allocations: 9 kB / 0.9579 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.461e-05/0.7612, allocations: 38.28 kB / 0.958 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.226e-05/0.7612, allocations: 26.14 kB / 0.958 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004023/0.7616, allocations: 366 kB / 0.9584 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.7617, allocations: 3.562 kB / 0.9584 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.802e-05/0.7617, allocations: 15.3 kB / 0.9584 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001576/0.7619, allocations: 85.83 kB / 0.9585 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.7619, allocations: 0 / 0.9585 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.7619, allocations: 1.062 kB / 0.9585 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.7619, allocations: 5.547 kB / 0.9585 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001023/0.762, allocations: 36.02 kB / 0.9585 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005684/0.7626, allocations: 422.4 kB / 0.9589 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002327/0.7628, allocations: 84.95 kB / 0.959 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.991e-05/0.7629, allocations: 28.5 kB / 0.959 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.502e-05/0.7629, allocations: 5.125 kB / 0.959 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000142/0.7631, allocations: 77.47 kB / 0.9591 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/0.7631, allocations: 0 / 0.9591 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0002839/0.7634, allocations: 129.2 kB / 0.9592 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.674e-05/0.7634, allocations: 53.22 kB / 0.9593 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002593/0.7637, allocations: 310.9 kB / 0.9596 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.291e-05/0.7637, allocations: 27.08 kB / 0.9596 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.232e-05/0.7638, allocations: 149.7 kB / 0.9597 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.7638, allocations: 26.47 kB / 0.9598 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.939e-06/0.7638, allocations: 1.375 kB / 0.9598 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.856e-05/0.7639, allocations: 337.7 kB / 0.9601 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.45e-05/0.764, allocations: 37.98 kB / 0.9601 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.173e-05/0.7641, allocations: 69.38 kB / 0.9602 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.44e-05/0.7642, allocations: 39.3 kB / 0.9602 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.7642, allocations: 5.328 kB / 0.9602 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000241/0.7644, allocations: 166 kB / 0.9604 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.7644, allocations: 5.5 kB / 0.9604 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-06/0.7644, allocations: 0 / 0.9604 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.7645, allocations: 1.375 kB / 0.9604 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.7646, allocations: 27.17 kB / 0.9604 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.7646, allocations: 9.469 kB / 0.9604 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.7647, allocations: 17.61 kB / 0.9604 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.7647, allocations: 8.25 kB / 0.9604 GB, free: 2.809 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.timTabLin.tab.nextTimeEvent,les.y,$PRE.lesHys.lesHys.y,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001127/0.7649, allocations: 160.7 kB / 0.9606 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.647e-05/0.7649, allocations: 26.67 kB / 0.9606 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.127e-05/0.7649, allocations: 27.41 kB / 0.9607 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.765, allocations: 1.375 kB / 0.9607 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.765, allocations: 4 kB / 0.9607 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.765, allocations: 1.375 kB / 0.9607 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/0.7651, allocations: 244.5 kB / 0.9609 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.7651, allocations: 0 / 0.9609 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.396e-05/0.7652, allocations: 7.391 kB / 0.9609 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.7652, allocations: 1 kB / 0.9609 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.7652, allocations: 4.953 kB / 0.9609 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.7652, allocations: 1.094 kB / 0.9609 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.7652, allocations: 0 / 0.9609 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001896/0.7654, allocations: 142.2 kB / 0.961 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.722e-05/0.7655, allocations: 94.02 kB / 0.9611 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.895e-05/0.7655, allocations: 10.28 kB / 0.9611 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.133e-05/0.7656, allocations: 12.62 kB / 0.9612 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.921e-05/0.7656, allocations: 13.5 kB / 0.9612 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.7656, allocations: 6.938 kB / 0.9612 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001907/0.7658, allocations: 218.1 kB / 0.9614 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7658, allocations: 0 / 0.9614 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002564/0.7661, allocations: 47.27 kB / 0.9614 GB, free: 1.969 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 ($whenCondition1,les.y,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled) * Number of discrete states: 3 (timTabLin.tab.nextTimeEventScaled,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent) * 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.001176/0.7673, allocations: 0.9817 MB / 0.9624 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002123/0.7675, allocations: 91.42 kB / 0.9625 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.7675, allocations: 0 / 0.9625 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.423e-05/0.7676, allocations: 33.55 kB / 0.9625 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003043/0.7679, allocations: 54.27 kB / 0.9626 GB, free: 1.141 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001876/0.7698, allocations: 1.325 MB / 0.9638 GB, free: 320 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.7701, allocations: 0.753 MB / 0.9646 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001289/0.7702, allocations: 42.05 kB / 0.9646 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.7704, allocations: 74.69 kB / 0.9647 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of SimCode: time 4.31e-07/0.7704, allocations: 0 / 0.9647 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01681/0.7872, allocations: 4.967 MB / 0.9695 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000167/0.7874, allocations: 237.3 kB / 0.9698 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/2.614, allocations: 0 / 0.9698 GB, free: 12.96 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat does not exist to compare? outputFormat=mat