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.001117/0.001116, allocations: 100 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.001344/0.001344, 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.453/1.453, allocations: 223.2 MB / 239.9 MB, free: 5.445 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.509/2.509, allocations: 390.3 MB / 0.6653 GB, free: 2.953 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003737/0.0003738, allocations: 12 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8085/0.8089, allocations: 142.3 MB / 0.9536 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.001988/0.8109, allocations: 1.59 MB / 0.9552 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001443/0.8124, allocations: 1 MB / 0.9561 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.806e-05/0.8125, allocations: 6.5 kB / 0.9561 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002918/0.8128, allocations: 115.4 kB / 0.9563 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002002/0.813, allocations: 89.67 kB / 0.9563 GB, free: 6 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000296/0.8133, allocations: 123.7 kB / 0.9565 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002112/0.8135, allocations: 126.7 kB / 0.9566 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001215/0.8136, allocations: 35.47 kB / 0.9566 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.8138, allocations: 81.83 kB / 0.9567 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001081/0.8139, allocations: 73.58 kB / 0.9568 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.553e-05/0.8139, allocations: 3.031 kB / 0.9568 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.481e-05/0.814, allocations: 36.33 kB / 0.9568 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.858e-05/0.8141, allocations: 52.81 kB / 0.9569 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.262e-05/0.8141, allocations: 55.3 kB / 0.9569 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002155/0.8143, allocations: 212 kB / 0.9571 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.8144, allocations: 5.094 kB / 0.9571 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.603e-06/0.8144, allocations: 0 / 0.9571 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.089e-06/0.8144, allocations: 0 / 0.9571 GB, free: 5.484 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.0006522/0.815, allocations: 0.5175 MB / 0.9576 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.8151, allocations: 8.969 kB / 0.9576 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.168e-05/0.8151, allocations: 36.34 kB / 0.9577 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.321e-05/0.8152, allocations: 30.95 kB / 0.9577 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000462/0.8156, allocations: 366.6 kB / 0.958 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.8156, allocations: 6.688 kB / 0.958 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.8157, allocations: 3.938 kB / 0.958 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001602/0.8158, allocations: 85.05 kB / 0.9581 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.8159, allocations: 7.922 kB / 0.9581 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.8159, allocations: 5.5 kB / 0.9581 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.8159, allocations: 5.172 kB / 0.9581 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001055/0.816, allocations: 36.05 kB / 0.9582 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005645/0.8166, allocations: 418.6 kB / 0.9586 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002275/0.8168, allocations: 84.58 kB / 0.9587 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.8168, allocations: 6.266 kB / 0.9587 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001315/0.817, allocations: 77.42 kB / 0.9587 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.817, allocations: 0 / 0.9587 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0002888/0.8173, allocations: 135.2 kB / 0.9589 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.301e-05/0.8173, allocations: 53.19 kB / 0.9589 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002772/0.8176, allocations: 303.3 kB / 0.9592 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.8176, allocations: 31.36 kB / 0.9592 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.785e-05/0.8177, allocations: 145 kB / 0.9594 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.35e-05/0.8177, allocations: 19.53 kB / 0.9594 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.016e-05/0.8178, allocations: 5.375 kB / 0.9594 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.765e-05/0.8178, allocations: 333.7 kB / 0.9597 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.564e-05/0.8179, allocations: 45.98 kB / 0.9598 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.65e-05/0.818, allocations: 63.62 kB / 0.9598 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.735e-05/0.8181, allocations: 45.92 kB / 0.9599 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.8181, allocations: 0 / 0.9599 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002559/0.8184, allocations: 172.4 kB / 0.96 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.8184, allocations: 4.125 kB / 0.96 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.8184, allocations: 1.375 kB / 0.96 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.8184, allocations: 5.406 kB / 0.96 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.8185, allocations: 25.8 kB / 0.9601 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/0.8186, allocations: 1.375 kB / 0.9601 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.8187, allocations: 18.98 kB / 0.9601 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.8187, allocations: 6.875 kB / 0.9601 GB, free: 2.918 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.0001145/0.8188, allocations: 155.9 kB / 0.9602 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.608e-05/0.8189, allocations: 25.3 kB / 0.9603 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.53e-05/0.8189, allocations: 33.09 kB / 0.9603 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.8189, allocations: 1.375 kB / 0.9603 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.8189, allocations: 0 / 0.9603 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.8189, allocations: 0 / 0.9603 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001644/0.8191, allocations: 236.5 kB / 0.9605 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.8191, allocations: 1.438 kB / 0.9605 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.355e-05/0.8191, allocations: 6.438 kB / 0.9605 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.8192, allocations: 4.922 kB / 0.9605 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.8192, allocations: 4.984 kB / 0.9605 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.8192, allocations: 1.031 kB / 0.9605 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.8192, allocations: 4 kB / 0.9605 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001997/0.8194, allocations: 138.2 kB / 0.9607 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.618e-05/0.8195, allocations: 103 kB / 0.9608 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.217e-05/0.8195, allocations: 9.078 kB / 0.9608 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.792e-05/0.8196, allocations: 13.2 kB / 0.9608 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.759e-05/0.8197, allocations: 13.33 kB / 0.9608 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.8197, allocations: 7.312 kB / 0.9608 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002163/0.8199, allocations: 218.5 kB / 0.961 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8199, allocations: 0 / 0.961 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002667/0.8202, allocations: 42.75 kB / 0.9611 GB, free: 2.082 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.001381/0.8216, allocations: 0.9913 MB / 0.962 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002321/0.8218, allocations: 87.34 kB / 0.9621 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.8218, allocations: 0 / 0.9621 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.858e-05/0.8219, allocations: 29.52 kB / 0.9621 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/0.8222, allocations: 50.56 kB / 0.9622 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008557/0.8231, allocations: 0.8145 MB / 0.963 GB, free: 0.5586 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002502/0.8233, allocations: 0.7557 MB / 0.9637 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001433/0.8235, allocations: 49.58 kB / 0.9638 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.8236, allocations: 70.34 kB / 0.9638 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of SimCode: time 3.6e-07/0.8236, allocations: 0 / 0.9638 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02266/0.8463, allocations: 4.806 MB / 0.9685 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002831/0.8466, allocations: 234.6 kB / 0.9688 GB, free: 13.28 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.69/2.536, allocations: 0 / 0.9688 GB, free: 13.28 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