Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.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.Nor,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nor,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Nor",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.005233/0.005233, allocations: 103.7 kB / 15.74 MB, free: 6.449 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.001103/0.001103, allocations: 195.8 kB / 16.67 MB, free: 6.355 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.824/2.824, allocations: 469.4 MB / 0.7421 GB, free: 7.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 63.91 kB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3661/0.3676, allocations: 159.1 MB / 1.22 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nor): time 0.002108/0.3697, allocations: 0.6594 MB / 1.22 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001684/0.3714, allocations: 1.192 MB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.85e-05/0.3715, allocations: 0 / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.534e-05/0.3716, allocations: 3.938 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.192e-05/0.3717, allocations: 11.88 kB / 1.222 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007391/0.3724, allocations: 217.2 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000276/0.3727, allocations: 191.6 kB / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.3728, allocations: 16 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.373, allocations: 67.88 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.3731, allocations: 55.86 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.57e-05/0.3731, allocations: 16 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001073/0.3733, allocations: 27.98 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.764e-05/0.3733, allocations: 15.97 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.427e-05/0.3734, allocations: 55.83 kB / 1.222 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002463/0.3736, allocations: 155.5 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3736, allocations: 0 / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.462e-06/0.3737, allocations: 4 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.3737, allocations: 0 / 1.222 GB, free: 11.95 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005661/0.3742, allocations: 438.7 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.3743, allocations: 8.031 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.627e-05/0.3743, allocations: 38.75 kB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.815e-05/0.3744, allocations: 8.891 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.3745, allocations: 168.3 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.3746, allocations: 12.36 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.424e-05/0.3746, allocations: 8.375 kB / 1.223 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001128/0.3747, allocations: 54.19 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.3747, allocations: 3.938 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.3748, allocations: 4 kB / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3748, allocations: 0 / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.559e-05/0.3748, allocations: 15.98 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005021/0.3753, allocations: 352.7 kB / 1.223 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.127e-05/0.3754, allocations: 30.58 kB / 1.223 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.456e-05/0.3755, allocations: 28.88 kB / 1.223 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.628e-06/0.3755, allocations: 0 / 1.223 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001951/0.3757, allocations: 75.36 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.3757, allocations: 0 / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0002514/0.3759, allocations: 101.6 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.376, allocations: 59.34 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.3761, allocations: 121.8 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.3761, allocations: 33.7 kB / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.179e-05/0.3762, allocations: 92.09 kB / 1.224 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/0.3763, allocations: 19.89 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.3764, allocations: 53.67 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.3765, allocations: 314.8 kB / 1.224 GB, free: 9.703 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.3767, allocations: 63.91 kB / 1.224 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.3768, allocations: 97.62 kB / 1.224 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002005/0.377, allocations: 159.6 kB / 1.225 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.377, allocations: 0 / 1.225 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005217/0.3776, allocations: 257 kB / 1.225 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.672e-05/0.3776, allocations: 67.39 kB / 1.225 GB, free: 9 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.3776, allocations: 4 kB / 1.225 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.3777, allocations: 0 / 1.225 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.324e-05/0.3777, allocations: 11.92 kB / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.3777, allocations: 0 / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003486/0.3781, allocations: 55.83 kB / 1.225 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.063e-05/0.3781, allocations: 16.48 kB / 1.225 GB, free: 8.914 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: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,nor1.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 (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.0001336/0.3782, allocations: 130.3 kB / 1.225 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.377e-05/0.3783, allocations: 3.953 kB / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.835e-05/0.3783, allocations: 8.375 kB / 1.225 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3783, allocations: 0 / 1.225 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3783, allocations: 3.938 kB / 1.225 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.257e-06/0.3783, allocations: 0 / 1.225 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.3785, allocations: 185.6 kB / 1.225 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3785, allocations: 0 / 1.225 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.696e-06/0.3785, allocations: 7.938 kB / 1.225 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3785, allocations: 0 / 1.225 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.3786, allocations: 4 kB / 1.225 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3786, allocations: 0 / 1.225 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3786, allocations: 0 / 1.225 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001522/0.3787, allocations: 121 kB / 1.225 GB, free: 8.379 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.039e-05/0.3788, allocations: 77.11 kB / 1.226 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.3788, allocations: 7.984 kB / 1.226 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.21e-05/0.3788, allocations: 4 kB / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.82e-05/0.3789, allocations: 4 kB / 1.226 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.3789, allocations: 7.984 kB / 1.226 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.557e-05/0.3789, allocations: 91.22 kB / 1.226 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.11e-07/0.3789, allocations: 0 / 1.226 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002386/0.3792, allocations: 28 kB / 1.226 GB, free: 8.145 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 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,nor1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0004811/0.3797, allocations: 0.6635 MB / 1.226 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003436/0.38, allocations: 242.6 kB / 1.227 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.38, allocations: 0 / 1.227 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.887e-05/0.3801, allocations: 35.91 kB / 1.227 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/0.3803, allocations: 15.45 kB / 1.227 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.3827, allocations: 1.716 MB / 1.228 GB, free: 5.309 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003816/0.3831, allocations: 0.6923 MB / 1.229 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.388e-05/0.3831, allocations: 7.984 kB / 1.229 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.949e-05/0.3831, allocations: 19.44 kB / 1.229 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.3831, allocations: 0 / 1.229 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02112/0.4043, allocations: 2.884 MB / 1.232 GB, free: 1.789 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.727/8.132, allocations: 5.312 kB / 1.232 GB, free: 1.785 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor_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_Nor.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches