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.00971/0.009709, allocations: 98.97 kB / 15.73 MB, free: 6.016 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.002357/0.002357, allocations: 201.5 kB / 16.68 MB, free: 5.93 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.504/1.504, 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.78/2.78, allocations: 482.4 MB / 0.7548 GB, free: 6.883 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 68.95 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3091, allocations: 162.2 MB / 1.241 GB, free: 9.289 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.002031/0.3111, allocations: 0.7363 MB / 1.242 GB, free: 8.551 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001765/0.3129, allocations: 1.16 MB / 1.243 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.839e-05/0.313, allocations: 4 kB / 1.243 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.605e-05/0.3131, allocations: 7.922 kB / 1.243 GB, free: 7.367 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.764e-05/0.3131, allocations: 3.938 kB / 1.243 GB, free: 7.363 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005545/0.3137, allocations: 131.9 kB / 1.243 GB, free: 7.238 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002061/0.3139, allocations: 131.7 kB / 1.244 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.314, allocations: 21.38 kB / 1.244 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001068/0.3141, allocations: 43.91 kB / 1.244 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.3143, allocations: 39.88 kB / 1.244 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.805e-05/0.3143, allocations: 12 kB / 1.244 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.41e-05/0.3144, allocations: 31.98 kB / 1.244 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.67e-05/0.3144, allocations: 15.92 kB / 1.244 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.447e-05/0.3145, allocations: 43.84 kB / 1.244 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.3147, allocations: 108 kB / 1.244 GB, free: 6.801 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3147, allocations: 0 / 1.244 GB, free: 6.801 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.887e-06/0.3147, allocations: 7.938 kB / 1.244 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.212e-06/0.3148, allocations: 0 / 1.244 GB, free: 6.793 MB / 0.9669 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.0006525/0.3154, allocations: 408.9 kB / 1.244 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.3155, allocations: 8.031 kB / 1.244 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.651e-05/0.3155, allocations: 46.69 kB / 1.244 GB, free: 6.273 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.598e-05/0.3156, allocations: 16.88 kB / 1.244 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001461/0.3157, allocations: 168.3 kB / 1.245 GB, free: 6.055 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.3157, allocations: 384 / 1.245 GB, free: 6.055 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.219e-05/0.3158, allocations: 12.38 kB / 1.245 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002129/0.316, allocations: 62.22 kB / 1.245 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.316, allocations: 3.938 kB / 1.245 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.316, allocations: 4 kB / 1.245 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.316, allocations: 0 / 1.245 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/0.3162, allocations: 43.95 kB / 1.245 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005329/0.3168, allocations: 340.5 kB / 1.245 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001796/0.317, allocations: 54.62 kB / 1.245 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.3171, allocations: 36.95 kB / 1.245 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.258e-05/0.3171, allocations: 4 kB / 1.245 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002626/0.3174, allocations: 91.3 kB / 1.245 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.543e-06/0.3174, allocations: 0 / 1.245 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0004548/0.3179, allocations: 137.6 kB / 1.245 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.023e-05/0.3179, allocations: 59.47 kB / 1.245 GB, free: 5.125 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.318, allocations: 117.8 kB / 1.245 GB, free: 5 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.105e-05/0.3181, allocations: 29.7 kB / 1.245 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.561e-05/0.3182, allocations: 96.08 kB / 1.246 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.744e-05/0.3182, allocations: 23.78 kB / 1.246 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.175e-05/0.3183, allocations: 37.7 kB / 1.246 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.3184, allocations: 322.8 kB / 1.246 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.3186, allocations: 55.91 kB / 1.246 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.3188, allocations: 88.25 kB / 1.246 GB, free: 4.32 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003049/0.3191, allocations: 141.9 kB / 1.246 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3191, allocations: 0 / 1.246 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004795/0.3196, allocations: 203.1 kB / 1.246 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.89e-05/0.3197, allocations: 41.81 kB / 1.246 GB, free: 3.902 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3197, allocations: 4.312 kB / 1.246 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.3197, allocations: 4 kB / 1.246 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.313e-05/0.3198, allocations: 11.98 kB / 1.246 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.3198, allocations: 0 / 1.246 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002149/0.3201, allocations: 31.91 kB / 1.246 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.94e-05/0.3201, allocations: 19.97 kB / 1.246 GB, free: 3.832 MB / 0.9669 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.0001167/0.3202, allocations: 130.2 kB / 1.247 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.858e-05/0.3202, allocations: 7.953 kB / 1.247 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.087e-05/0.3203, allocations: 8.375 kB / 1.247 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.3203, allocations: 0 / 1.247 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.3203, allocations: 3.984 kB / 1.247 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3203, allocations: 3.984 kB / 1.247 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005141/0.3208, allocations: 374.4 kB / 1.247 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3208, allocations: 4 kB / 1.247 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.744e-05/0.3209, allocations: 8.047 kB / 1.247 GB, free: 3.234 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.249e-06/0.3209, allocations: 4 kB / 1.247 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.3209, allocations: 4 kB / 1.247 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.3209, allocations: 0 / 1.247 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3209, allocations: 0 / 1.247 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003354/0.3213, allocations: 215.4 kB / 1.247 GB, free: 3 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.437e-05/0.3214, allocations: 89.05 kB / 1.247 GB, free: 2.895 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.3214, allocations: 0 / 1.247 GB, free: 2.895 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.758e-05/0.3215, allocations: 8 kB / 1.247 GB, free: 2.887 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.085e-05/0.3215, allocations: 11.92 kB / 1.247 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.3215, allocations: 0 / 1.247 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.89e-05/0.3216, allocations: 103.1 kB / 1.247 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3216, allocations: 0 / 1.247 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002709/0.3219, allocations: 27.94 kB / 1.247 GB, free: 2.746 MB / 0.9669 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.0007037/0.3226, allocations: 0.7406 MB / 1.248 GB, free: 1.98 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004156/0.323, allocations: 179.4 kB / 1.248 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.323, allocations: 7.938 kB / 1.248 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001311/0.3232, allocations: 35.91 kB / 1.248 GB, free: 1.75 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.3235, allocations: 19.92 kB / 1.248 GB, free: 1.73 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002274/0.3258, allocations: 1.683 MB / 1.25 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.3261, allocations: 0.6923 MB / 1.251 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.706e-05/0.3261, allocations: 7.984 kB / 1.251 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.584e-05/0.3262, allocations: 15.44 kB / 1.251 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of SimCode: time 3.1e-07/0.3262, allocations: 0 / 1.251 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02359/0.3498, allocations: 2.551 MB / 1.253 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.711/8.06, allocations: 19.44 kB / 1.253 GB, free: 12.73 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 400 --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