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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.006993/0.006993, allocations: 97.92 kB / 15.73 MB, free: 6.062 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.001479/0.001479, allocations: 194.8 kB / 16.68 MB, free: 5.969 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.881/2.881, allocations: 472.7 MB / 0.7453 GB, free: 404 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001965, allocations: 64.05 kB / 1.069 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8871/0.8891, allocations: 159.9 MB / 1.225 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.002366/0.8916, allocations: 0.7352 MB / 1.226 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001686/0.8933, allocations: 1.147 MB / 1.227 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.476e-05/0.8934, allocations: 3.938 kB / 1.227 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.638e-05/0.8935, allocations: 7.922 kB / 1.227 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.677e-05/0.8935, allocations: 11.88 kB / 1.227 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000593/0.8941, allocations: 131.4 kB / 1.227 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002117/0.8944, allocations: 119.8 kB / 1.227 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.8945, allocations: 19.97 kB / 1.227 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000119/0.8946, allocations: 47.91 kB / 1.227 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000114/0.8947, allocations: 51.75 kB / 1.227 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.07e-05/0.8948, allocations: 12 kB / 1.227 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 7.77e-05/0.8949, allocations: 23.98 kB / 1.227 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.541e-05/0.8949, allocations: 11.98 kB / 1.227 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 7.535e-05/0.895, allocations: 43.84 kB / 1.228 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002202/0.8952, allocations: 111.3 kB / 1.228 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.8952, allocations: 0 / 1.228 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.944e-06/0.8952, allocations: 0 / 1.228 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.006e-05/0.8952, allocations: 0 / 1.228 GB, free: 11.05 MB / 0.9512 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.0006875/0.8959, allocations: 420.8 kB / 1.228 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.896, allocations: 12.03 kB / 1.228 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.931e-05/0.896, allocations: 34.69 kB / 1.228 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.116e-05/0.8961, allocations: 4.938 kB / 1.228 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.8962, allocations: 176.3 kB / 1.228 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.8962, allocations: 8.375 kB / 1.228 GB, free: 10.31 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.546e-05/0.8963, allocations: 12.38 kB / 1.228 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000192/0.8965, allocations: 62.22 kB / 1.228 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.8965, allocations: 11.88 kB / 1.228 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.8965, allocations: 0 / 1.228 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.8965, allocations: 4 kB / 1.228 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001788/0.8967, allocations: 39.94 kB / 1.228 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005216/0.8972, allocations: 340.6 kB / 1.229 GB, free: 9.793 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001829/0.8974, allocations: 62.61 kB / 1.229 GB, free: 9.723 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001238/0.8976, allocations: 32.95 kB / 1.229 GB, free: 9.688 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.316e-05/0.8976, allocations: 0 / 1.229 GB, free: 9.688 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002515/0.8978, allocations: 91.3 kB / 1.229 GB, free: 9.586 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.8979, allocations: 4 kB / 1.229 GB, free: 9.582 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8): time 0.0004542/0.8983, allocations: 141.6 kB / 1.229 GB, free: 9.438 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/0.8984, allocations: 51.41 kB / 1.229 GB, free: 9.375 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.48e-05/0.8985, allocations: 125.8 kB / 1.229 GB, free: 9.242 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.878e-05/0.8985, allocations: 33.7 kB / 1.229 GB, free: 9.203 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.563e-05/0.8986, allocations: 88.14 kB / 1.229 GB, free: 9.113 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.142e-05/0.8986, allocations: 19.84 kB / 1.229 GB, free: 9.094 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.436e-05/0.8987, allocations: 37.7 kB / 1.229 GB, free: 9.051 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.8988, allocations: 326.8 kB / 1.23 GB, free: 8.723 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.899, allocations: 55.97 kB / 1.23 GB, free: 8.668 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.8992, allocations: 88.19 kB / 1.23 GB, free: 8.566 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002705/0.8995, allocations: 137.9 kB / 1.23 GB, free: 8.41 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.8995, allocations: 0 / 1.23 GB, free: 8.41 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004462/0.8999, allocations: 207.2 kB / 1.23 GB, free: 8.195 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.404e-05/0.9, allocations: 41.69 kB / 1.23 GB, free: 8.148 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.9, allocations: 0 / 1.23 GB, free: 8.148 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.9, allocations: 4 kB / 1.23 GB, free: 8.145 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.046e-05/0.9001, allocations: 11.92 kB / 1.23 GB, free: 8.133 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.9001, allocations: 4 kB / 1.23 GB, free: 8.129 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001942/0.9003, allocations: 39.97 kB / 1.23 GB, free: 8.09 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.719e-05/0.9004, allocations: 15.98 kB / 1.23 GB, free: 8.074 MB / 0.9512 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.0001015/0.9005, allocations: 119.6 kB / 1.23 GB, free: 7.949 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.6e-05/0.9005, allocations: 7.953 kB / 1.23 GB, free: 7.941 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.899e-05/0.9005, allocations: 12.38 kB / 1.23 GB, free: 7.926 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.9005, allocations: 0 / 1.23 GB, free: 7.926 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.9005, allocations: 0 / 1.23 GB, free: 7.926 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.9005, allocations: 7.922 kB / 1.23 GB, free: 7.918 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004504/0.901, allocations: 378.4 kB / 1.231 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.901, allocations: 0 / 1.231 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.265e-05/0.9011, allocations: 11.98 kB / 1.231 GB, free: 7.48 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.9011, allocations: 0 / 1.231 GB, free: 7.48 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.9011, allocations: 0 / 1.231 GB, free: 7.48 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.9011, allocations: 8 kB / 1.231 GB, free: 7.473 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.9011, allocations: 0 / 1.231 GB, free: 7.473 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002902/0.9014, allocations: 216.6 kB / 1.231 GB, free: 7.246 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.961e-05/0.9015, allocations: 85.05 kB / 1.231 GB, free: 7.145 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.9015, allocations: 4 kB / 1.231 GB, free: 7.141 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.055e-05/0.9016, allocations: 8 kB / 1.231 GB, free: 7.133 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.328e-05/0.9016, allocations: 11.91 kB / 1.231 GB, free: 7.121 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.827e-06/0.9016, allocations: 4 kB / 1.231 GB, free: 7.117 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.506e-05/0.9017, allocations: 95.27 kB / 1.231 GB, free: 7.023 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9017, allocations: 0 / 1.231 GB, free: 7.023 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002601/0.902, allocations: 24 kB / 1.231 GB, free: 7 MB / 0.9512 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.0006179/0.9026, allocations: 0.7518 MB / 1.232 GB, free: 6.223 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003771/0.903, allocations: 183.2 kB / 1.232 GB, free: 6.031 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.903, allocations: 0 / 1.232 GB, free: 6.031 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001184/0.9031, allocations: 35.98 kB / 1.232 GB, free: 5.996 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.9034, allocations: 20.8 kB / 1.232 GB, free: 5.977 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002039/0.9054, allocations: 1.697 MB / 1.234 GB, free: 4.164 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002653/0.9057, allocations: 0.6846 MB / 1.234 GB, free: 3.453 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.686e-05/0.9058, allocations: 7.984 kB / 1.234 GB, free: 3.445 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.708e-05/0.9058, allocations: 15.44 kB / 1.235 GB, free: 3.43 MB / 0.9512 GB Notification: Performance of SimCode: time 2.2e-07/0.9058, allocations: 0 / 1.235 GB, free: 3.43 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02219/0.928, allocations: 2.553 MB / 1.237 GB, free: 0.9805 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.802/8.73, allocations: 16.7 kB / 1.237 GB, free: 0.9688 MB / 0.9512 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