Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",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.001634/0.001634, allocations: 108 kB / 15.6 MB, free: 132 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.00183/0.00183, allocations: 196.7 kB / 16.54 MB, free: 6.672 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.385/1.385, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.626/2.626, allocations: 390.2 MB / 0.6647 GB, free: 436 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 67.89 kB / 0.8127 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6568/0.6582, allocations: 140.4 MB / 0.9497 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.001904/0.6601, allocations: 0.7859 MB / 0.9505 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.6613, allocations: 1.141 MB / 0.9516 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.668e-05/0.6614, allocations: 4 kB / 0.9516 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.104e-05/0.6614, allocations: 5.25 kB / 0.9516 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.152e-05/0.6615, allocations: 9.375 kB / 0.9516 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004092/0.6619, allocations: 135.1 kB / 0.9518 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001453/0.6621, allocations: 138.3 kB / 0.9519 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.322e-05/0.6622, allocations: 10.34 kB / 0.9519 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.99e-05/0.6623, allocations: 57.61 kB / 0.952 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.768e-05/0.6623, allocations: 47.5 kB / 0.952 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.833e-05/0.6624, allocations: 11.84 kB / 0.952 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.034e-05/0.6625, allocations: 29.14 kB / 0.952 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.055e-05/0.6625, allocations: 10.36 kB / 0.9521 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.739e-05/0.6625, allocations: 43.48 kB / 0.9521 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001777/0.6627, allocations: 124.3 kB / 0.9522 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.6627, allocations: 1.188 kB / 0.9522 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.182e-06/0.6627, allocations: 0 / 0.9522 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.6628, allocations: 0 / 0.9522 GB, free: 7.23 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005621/0.6633, allocations: 420.7 kB / 0.9526 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.6634, allocations: 12.88 kB / 0.9526 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.604e-05/0.6634, allocations: 36.31 kB / 0.9527 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.369e-05/0.6634, allocations: 9.844 kB / 0.9527 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.651e-05/0.6635, allocations: 179.7 kB / 0.9528 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.6636, allocations: 4.438 kB / 0.9528 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.335e-05/0.6636, allocations: 9.656 kB / 0.9529 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002392/0.6638, allocations: 75.48 kB / 0.9529 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.6638, allocations: 3.938 kB / 0.9529 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.6639, allocations: 1.562 kB / 0.9529 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.6639, allocations: 4 kB / 0.9529 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002926/0.6642, allocations: 66.39 kB / 0.953 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003423/0.6645, allocations: 334.8 kB / 0.9533 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.6647, allocations: 55.27 kB / 0.9534 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.6649, allocations: 41.69 kB / 0.9534 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.087e-06/0.6649, allocations: 1.25 kB / 0.9534 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002517/0.6651, allocations: 104.3 kB / 0.9535 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.363e-06/0.6652, allocations: 0 / 0.9535 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005764/0.6657, allocations: 171 kB / 0.9537 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.562e-05/0.6658, allocations: 52.75 kB / 0.9537 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.916e-05/0.6659, allocations: 131.7 kB / 0.9538 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.6659, allocations: 32.11 kB / 0.9539 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.844e-05/0.6659, allocations: 89.19 kB / 0.954 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/0.666, allocations: 14.59 kB / 0.954 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.227e-05/0.6661, allocations: 35.47 kB / 0.954 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.243e-05/0.6661, allocations: 320 kB / 0.9543 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002329/0.6664, allocations: 60.12 kB / 0.9544 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.6666, allocations: 80.88 kB / 0.9545 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003603/0.667, allocations: 146.4 kB / 0.9546 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.667, allocations: 0 / 0.9546 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005143/0.6675, allocations: 211.8 kB / 0.9548 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/0.6676, allocations: 38.02 kB / 0.9548 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.6676, allocations: 1.281 kB / 0.9548 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.6676, allocations: 1.094 kB / 0.9548 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.6677, allocations: 23.19 kB / 0.9549 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.6678, allocations: 8.938 kB / 0.9549 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002406/0.668, allocations: 39.17 kB / 0.9549 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.668, allocations: 4.562 kB / 0.9549 GB, free: 4.793 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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 7.839e-05/0.6681, allocations: 127.2 kB / 0.955 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.566e-05/0.6681, allocations: 7.688 kB / 0.955 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.602e-05/0.6682, allocations: 9.594 kB / 0.955 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.6682, allocations: 1.25 kB / 0.955 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.6682, allocations: 0 / 0.955 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.6682, allocations: 1.188 kB / 0.955 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001129/0.6683, allocations: 190.2 kB / 0.9552 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.6683, allocations: 0 / 0.9552 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.934e-05/0.6684, allocations: 14.48 kB / 0.9552 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.6684, allocations: 1.219 kB / 0.9552 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.6684, allocations: 0 / 0.9552 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.6684, allocations: 5.219 kB / 0.9552 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.6684, allocations: 0 / 0.9552 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003674/0.6688, allocations: 156.3 kB / 0.9554 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.273e-05/0.6689, allocations: 83.39 kB / 0.9555 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.842e-05/0.6689, allocations: 1.219 kB / 0.9555 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.339e-05/0.669, allocations: 18.94 kB / 0.9555 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.594e-05/0.669, allocations: 11.03 kB / 0.9555 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/0.669, allocations: 6.094 kB / 0.9555 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.31e-05/0.6691, allocations: 93.05 kB / 0.9556 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6691, allocations: 0 / 0.9556 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002269/0.6693, allocations: 28.59 kB / 0.9556 GB, free: 4.094 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006134/0.6699, allocations: 0.6999 MB / 0.9563 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004932/0.6704, allocations: 190 kB / 0.9565 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.6705, allocations: 0 / 0.9565 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001868/0.6706, allocations: 51.86 kB / 0.9565 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002157/0.6709, allocations: 14.19 kB / 0.9566 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001921/0.6728, allocations: 1.624 MB / 0.9581 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.6729, allocations: 0.6951 MB / 0.9588 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.652e-05/0.673, allocations: 2.75 kB / 0.9588 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.302e-05/0.673, allocations: 19.56 kB / 0.9588 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.673, allocations: 4 kB / 0.9588 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02207/0.6951, allocations: 2.648 MB / 0.9614 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.788/8.483, allocations: 8.875 kB / 0.9614 GB, free: 15.72 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches