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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.001484/0.001484, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 189.2 kB / 16.66 MB, free: 6.582 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.801/2.801, allocations: 469.4 MB / 0.7421 GB, free: 7.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001295, allocations: 71.89 kB / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3574/0.3587, allocations: 159.1 MB / 1.22 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.002387/0.3612, allocations: 0.7456 MB / 1.22 GB, free: 13.92 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001975/0.3632, allocations: 1.143 MB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.711e-05/0.3633, allocations: 3.938 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.555e-05/0.3634, allocations: 7.875 kB / 1.222 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.554e-05/0.3635, allocations: 19.92 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005807/0.364, allocations: 126.4 kB / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002082/0.3643, allocations: 123.8 kB / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.3644, allocations: 16 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.3645, allocations: 47.84 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.3646, allocations: 51.8 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.823e-05/0.3647, allocations: 12 kB / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.724e-05/0.3647, allocations: 27.98 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.529e-05/0.3648, allocations: 8 kB / 1.222 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.502e-05/0.3649, allocations: 47.83 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002046/0.3651, allocations: 111.6 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3651, allocations: 0 / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3651, allocations: 4 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.3651, allocations: 0 / 1.222 GB, free: 12.17 MB / 0.9825 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.000765/0.3659, allocations: 412.8 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.3659, allocations: 12.03 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001454/0.3661, allocations: 34.75 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.164e-05/0.3661, allocations: 4.938 kB / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.3663, allocations: 176.3 kB / 1.223 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.3663, allocations: 4.375 kB / 1.223 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.29e-05/0.3663, allocations: 16.38 kB / 1.223 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002054/0.3666, allocations: 54.23 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.3666, allocations: 11.86 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.3666, allocations: 4 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.3666, allocations: 8 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.3668, allocations: 31.97 kB / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005404/0.3674, allocations: 344.6 kB / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001915/0.3676, allocations: 62.61 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.3677, allocations: 32.95 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 8.687e-06/0.3677, allocations: 0 / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002744/0.368, allocations: 91.3 kB / 1.223 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.422e-06/0.368, allocations: 3.938 kB / 1.223 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0004689/0.3685, allocations: 149.6 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.082e-05/0.3685, allocations: 51.41 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.3686, allocations: 121.8 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.136e-05/0.3687, allocations: 37.69 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.01e-05/0.3688, allocations: 88.14 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.628e-05/0.3688, allocations: 15.86 kB / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.781e-05/0.3689, allocations: 41.69 kB / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002306/0.3691, allocations: 322.8 kB / 1.224 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/0.3693, allocations: 51.95 kB / 1.224 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/0.3695, allocations: 92.19 kB / 1.224 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003028/0.3698, allocations: 137.9 kB / 1.224 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3699, allocations: 4 kB / 1.224 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004593/0.3703, allocations: 203.2 kB / 1.225 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.936e-05/0.3704, allocations: 37.7 kB / 1.225 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3704, allocations: 0 / 1.225 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.3704, allocations: 4 kB / 1.225 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.155e-05/0.3705, allocations: 11.92 kB / 1.225 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.3705, allocations: 4.125 kB / 1.225 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.3708, allocations: 39.89 kB / 1.225 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.535e-05/0.3708, allocations: 12 kB / 1.225 GB, free: 9.207 MB / 0.9825 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 0.0001171/0.3709, allocations: 130.2 kB / 1.225 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.901e-05/0.3709, allocations: 7.953 kB / 1.225 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.883e-05/0.371, allocations: 16.31 kB / 1.225 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.371, allocations: 0 / 1.225 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.84e-06/0.371, allocations: 4 kB / 1.225 GB, free: 9.035 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.371, allocations: 0 / 1.225 GB, free: 9.035 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005083/0.3715, allocations: 374.4 kB / 1.225 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3715, allocations: 0 / 1.225 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.902e-05/0.3716, allocations: 15.92 kB / 1.225 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.3716, allocations: 0 / 1.225 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.988e-06/0.3716, allocations: 0 / 1.225 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3716, allocations: 4 kB / 1.225 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3716, allocations: 0 / 1.225 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003483/0.372, allocations: 211.4 kB / 1.226 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.973e-05/0.3721, allocations: 81.06 kB / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.114e-05/0.3721, allocations: 8.062 kB / 1.226 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.867e-05/0.3722, allocations: 7.984 kB / 1.226 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.502e-05/0.3723, allocations: 15.92 kB / 1.226 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.3723, allocations: 4 kB / 1.226 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.067e-05/0.3724, allocations: 91.27 kB / 1.226 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3724, allocations: 0 / 1.226 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002737/0.3727, allocations: 27.94 kB / 1.226 GB, free: 8.121 MB / 0.9825 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.0008544/0.3735, allocations: 0.7436 MB / 1.226 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004716/0.374, allocations: 179.8 kB / 1.227 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.374, allocations: 0 / 1.227 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.3742, allocations: 39.91 kB / 1.227 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.3745, allocations: 29.81 kB / 1.227 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002418/0.3769, allocations: 1.69 MB / 1.228 GB, free: 5.293 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.3773, allocations: 0.6885 MB / 1.229 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.09e-05/0.3774, allocations: 4 kB / 1.229 GB, free: 4.574 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.87e-05/0.3775, allocations: 23.42 kB / 1.229 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of SimCode: time 4.21e-07/0.3775, allocations: 4 kB / 1.229 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02112/0.3986, allocations: 2.551 MB / 1.232 GB, free: 2.109 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.884/8.283, allocations: 4.062 kB / 1.232 GB, free: 2.105 MB / 0.9825 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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