Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Logical.Validation.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change",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.001885/0.001885, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001902/0.001902, allocations: 195.9 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.709/2.709, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 62.12 kB / 0.8987 GB, free: 37.12 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3321, allocations: 157.4 MB / 1.052 GB, free: 8.691 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.001853/0.334, allocations: 0.8103 MB / 1.053 GB, free: 7.879 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001279/0.3353, allocations: 1.155 MB / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.798e-05/0.3354, allocations: 3.938 kB / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.923e-05/0.3354, allocations: 7.938 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.074e-05/0.3355, allocations: 11.92 kB / 1.054 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004718/0.336, allocations: 127.4 kB / 1.054 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001391/0.3361, allocations: 119.8 kB / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.258e-05/0.3362, allocations: 16 kB / 1.055 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.718e-05/0.3363, allocations: 47.89 kB / 1.055 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.66e-05/0.3364, allocations: 39.83 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.3364, allocations: 12 kB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.19e-05/0.3365, allocations: 23.98 kB / 1.055 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.068e-05/0.3365, allocations: 11.98 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.272e-05/0.3366, allocations: 43.83 kB / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001641/0.3367, allocations: 111.7 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.3367, allocations: 0 / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3367, allocations: 0 / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.558e-06/0.3368, allocations: 0 / 1.055 GB, free: 6.148 MB / 0.8106 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.0005186/0.3373, allocations: 417.2 kB / 1.055 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.3373, allocations: 8.625 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.404e-05/0.3374, allocations: 42.67 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.313e-05/0.3374, allocations: 8.938 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.649e-05/0.3375, allocations: 164.3 kB / 1.056 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.3375, allocations: 8.375 kB / 1.056 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.595e-05/0.3376, allocations: 8.375 kB / 1.056 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001714/0.3377, allocations: 62.22 kB / 1.056 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.3378, allocations: 3.938 kB / 1.056 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.3378, allocations: 4 kB / 1.056 GB, free: 5.328 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.467e-06/0.3378, allocations: 0 / 1.056 GB, free: 5.328 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001663/0.338, allocations: 51.88 kB / 1.056 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004428/0.3384, allocations: 340.6 kB / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.3386, allocations: 54.61 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.894e-05/0.3387, allocations: 36.97 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.3387, allocations: 7.938 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002191/0.3389, allocations: 87.3 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.643e-06/0.3389, allocations: 0 / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0003811/0.3393, allocations: 141.5 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.3394, allocations: 67.39 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.184e-05/0.3394, allocations: 113.8 kB / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.664e-05/0.3395, allocations: 29.7 kB / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.633e-05/0.3395, allocations: 96.06 kB / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.816e-05/0.3396, allocations: 15.81 kB / 1.057 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.529e-05/0.3396, allocations: 37.7 kB / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.121e-05/0.3397, allocations: 322.8 kB / 1.057 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.3399, allocations: 51.97 kB / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.34, allocations: 84.25 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002475/0.3403, allocations: 150.2 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3403, allocations: 0 / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004018/0.3407, allocations: 211.1 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.3407, allocations: 33.7 kB / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.3407, allocations: 0 / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.3408, allocations: 8.125 kB / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.251e-05/0.3409, allocations: 15.98 kB / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.3409, allocations: 0 / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002137/0.3411, allocations: 39.8 kB / 1.057 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.3411, allocations: 8 kB / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,change.y,change.u,$PRE.change.u,booPul.y,$PRE.booPul.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.83e-05/0.3412, allocations: 131.3 kB / 1.058 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.646e-05/0.3412, allocations: 11.98 kB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.305e-05/0.3413, allocations: 4.375 kB / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3413, allocations: 0 / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.3413, allocations: 0 / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3413, allocations: 3.938 kB / 1.058 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004416/0.3417, allocations: 386.3 kB / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3417, allocations: 0 / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.094e-05/0.3418, allocations: 11.98 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.3418, allocations: 0 / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.3418, allocations: 4 kB / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.3418, allocations: 0 / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3418, allocations: 0 / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000288/0.3421, allocations: 211.3 kB / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.457e-05/0.3422, allocations: 85.11 kB / 1.058 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.571e-05/0.3422, allocations: 0 / 1.058 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.998e-05/0.3423, allocations: 12.05 kB / 1.058 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.007e-05/0.3423, allocations: 11.94 kB / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.3423, allocations: 7.922 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.882e-05/0.3424, allocations: 91.28 kB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3424, allocations: 3.938 kB / 1.058 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002487/0.3426, allocations: 23.98 kB / 1.058 GB, free: 2.105 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (change.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,change.u,triggeredSampler.y) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005254/0.3432, allocations: 0.7406 MB / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003336/0.3435, allocations: 183.4 kB / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3435, allocations: 4.062 kB / 1.059 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.3436, allocations: 39.91 kB / 1.059 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.3439, allocations: 17.8 kB / 1.059 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.3457, allocations: 1.69 MB / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001966/0.3459, allocations: 0.6885 MB / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.008e-05/0.3459, allocations: 4 kB / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.1e-05/0.346, allocations: 23.75 kB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of SimCode: time 6.01e-07/0.346, allocations: 0 / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.253/4.599, allocations: 2.383 MB / 1.064 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001987/4.599, allocations: 218.8 kB / 1.064 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.522/7.122, allocations: 0 / 1.064 GB, free: 12.03 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches