Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Logical.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_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.0105/0.0105, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.002426/0.002426, allocations: 201.2 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 2.852/2.852, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 5.17/5.17, allocations: 437 MB / 0.7105 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00302/0.00302, allocations: 63.91 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7248/0.7279, allocations: 151.6 MB / 1.166 GB, free: 7.312 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.003725/0.7317, allocations: 0.7087 MB / 1.167 GB, free: 6.602 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003548/0.7353, allocations: 1.269 MB / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.802e-05/0.7355, allocations: 0 / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 5.66e-05/0.7355, allocations: 3.938 kB / 1.168 GB, free: 5.312 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001539/0.7358, allocations: 19.8 kB / 1.168 GB, free: 5.293 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001653/0.7374, allocations: 315.6 kB / 1.168 GB, free: 4.992 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0006033/0.7381, allocations: 279.6 kB / 1.169 GB, free: 4.719 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.7382, allocations: 8.188 kB / 1.169 GB, free: 4.707 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002244/0.7384, allocations: 107.8 kB / 1.169 GB, free: 4.602 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003046/0.7388, allocations: 91.73 kB / 1.169 GB, free: 4.512 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 7.128e-05/0.7388, allocations: 24 kB / 1.169 GB, free: 4.488 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001755/0.739, allocations: 35.98 kB / 1.169 GB, free: 4.453 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.959e-05/0.7391, allocations: 11.94 kB / 1.169 GB, free: 4.441 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001993/0.7393, allocations: 83.8 kB / 1.169 GB, free: 4.359 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0007528/0.7401, allocations: 223.6 kB / 1.169 GB, free: 4.141 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.7401, allocations: 0 / 1.169 GB, free: 4.141 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.437e-06/0.7401, allocations: 0 / 1.169 GB, free: 4.141 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.165e-05/0.7401, allocations: 0 / 1.169 GB, free: 4.141 MB / 0.92 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.001106/0.7412, allocations: 0.4885 MB / 1.17 GB, free: 3.586 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 8.152e-05/0.7413, allocations: 12.03 kB / 1.17 GB, free: 3.574 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.248e-05/0.7414, allocations: 30.75 kB / 1.17 GB, free: 3.535 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.7415, allocations: 16.89 kB / 1.17 GB, free: 3.52 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002836/0.7418, allocations: 188.1 kB / 1.17 GB, free: 3.297 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.7419, allocations: 12.38 kB / 1.17 GB, free: 3.285 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002464/0.7443, allocations: 16.38 kB / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000263/0.7446, allocations: 57.98 kB / 1.17 GB, free: 3.207 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.7446, allocations: 3.984 kB / 1.17 GB, free: 3.203 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.7447, allocations: 0 / 1.17 GB, free: 3.203 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.7447, allocations: 3.938 kB / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000105/0.7448, allocations: 23.98 kB / 1.17 GB, free: 3.176 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.7463, allocations: 412.5 kB / 1.17 GB, free: 2.723 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001433/0.7464, allocations: 38.58 kB / 1.171 GB, free: 2.676 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.746e-05/0.7465, allocations: 20.94 kB / 1.171 GB, free: 2.652 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.7465, allocations: 0 / 1.171 GB, free: 2.652 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003325/0.7469, allocations: 103.3 kB / 1.171 GB, free: 2.539 MB / 0.92 GB Notification: Performance of pre-optimization done (n=10): time 2.485e-06/0.7469, allocations: 4 kB / 1.171 GB, free: 2.535 MB / 0.92 GB Notification: Performance of matching and sorting (n=10): time 0.0006024/0.7475, allocations: 141.5 kB / 1.171 GB, free: 2.391 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.7476, allocations: 55.41 kB / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002615/0.7479, allocations: 135.5 kB / 1.171 GB, free: 2.184 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 6.24e-05/0.748, allocations: 29.7 kB / 1.171 GB, free: 2.148 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001697/0.7482, allocations: 96.14 kB / 1.171 GB, free: 2.051 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.493e-05/0.7482, allocations: 23.84 kB / 1.171 GB, free: 2.027 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002939/0.7485, allocations: 65.67 kB / 1.171 GB, free: 1.957 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0003706/0.7489, allocations: 326.8 kB / 1.171 GB, free: 1.629 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003438/0.7493, allocations: 83.95 kB / 1.172 GB, free: 1.547 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003893/0.7497, allocations: 141.9 kB / 1.172 GB, free: 1.387 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005377/0.7502, allocations: 238.1 kB / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.7502, allocations: 0 / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001012/0.7513, allocations: 370.5 kB / 1.172 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001698/0.7514, allocations: 101.1 kB / 1.172 GB, free: 0.6133 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.7515, allocations: 384 / 1.172 GB, free: 0.6133 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.109e-05/0.7515, allocations: 4 kB / 1.172 GB, free: 0.6094 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.395e-05/0.7516, allocations: 16.11 kB / 1.172 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.7516, allocations: 0 / 1.172 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007288/0.7523, allocations: 83.73 kB / 1.172 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.629e-05/0.7524, allocations: 27.98 kB / 1.173 GB, free: 496 kB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.0002257/0.7527, allocations: 132 kB / 1.173 GB, free: 356 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.407e-05/0.7527, allocations: 7.953 kB / 1.173 GB, free: 348 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.666e-05/0.7528, allocations: 12.36 kB / 1.173 GB, free: 332 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.7528, allocations: 3.938 kB / 1.173 GB, free: 328 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.7528, allocations: 4 kB / 1.173 GB, free: 324 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.82e-06/0.7529, allocations: 0 / 1.173 GB, free: 324 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003274/0.7532, allocations: 189.6 kB / 1.173 GB, free: 84 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.7532, allocations: 0 / 1.173 GB, free: 84 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.675e-05/0.7532, allocations: 7.922 kB / 1.173 GB, free: 76 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.7532, allocations: 0 / 1.173 GB, free: 76 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.7533, allocations: 8 kB / 1.173 GB, free: 68 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.7533, allocations: 0 / 1.173 GB, free: 68 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.7533, allocations: 0 / 1.173 GB, free: 68 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003871/0.7537, allocations: 145 kB / 1.173 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/0.7538, allocations: 81.06 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.77e-05/0.7539, allocations: 4 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.46e-05/0.7539, allocations: 0 / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.815e-05/0.754, allocations: 11.98 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.754, allocations: 8 kB / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001403/0.7542, allocations: 101.5 kB / 1.173 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7542, allocations: 0 / 1.173 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0005773/0.7548, allocations: 51.94 kB / 1.173 GB, free: 15.63 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001128/0.7559, allocations: 0.6828 MB / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000997/0.7569, allocations: 369.9 kB / 1.174 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.757, allocations: 0 / 1.174 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.7571, allocations: 43.92 kB / 1.174 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005113/0.7576, allocations: 19.98 kB / 1.174 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005181/0.7628, allocations: 2.061 MB / 1.176 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005865/0.7635, allocations: 0.6924 MB / 1.177 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001057/0.7636, allocations: 12.42 kB / 1.177 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.423e-05/0.7637, allocations: 23.44 kB / 1.177 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of SimCode: time 1.352e-06/0.7637, allocations: 0 / 1.177 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09473/0.8585, allocations: 3.835 MB / 1.181 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.73/17.59, allocations: 5.812 kB / 1.181 GB, free: 7.785 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.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_10_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches