Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Nor,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nor,fileNamePrefix="Buildings_11_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.00583/0.005829, allocations: 101 kB / 15.73 MB, free: 6.059 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.001296/0.001296, allocations: 194 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.491/1.491, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.85/2.85, allocations: 469.8 MB / 0.7425 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 63.89 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9416/0.9435, allocations: 159.1 MB / 1.22 GB, free: 2.035 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nor): time 0.002168/0.9458, allocations: 0.6508 MB / 1.221 GB, free: 1.387 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002007/0.9478, allocations: 1.186 MB / 1.222 GB, free: 192 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.676e-05/0.9479, allocations: 4 kB / 1.222 GB, free: 188 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.452e-05/0.9479, allocations: 7.938 kB / 1.222 GB, free: 180 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.801e-05/0.9481, allocations: 11.86 kB / 1.222 GB, free: 168 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007951/0.9489, allocations: 217.8 kB / 1.222 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002794/0.9491, allocations: 179.7 kB / 1.222 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001753/0.9493, allocations: 12 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001238/0.9495, allocations: 71.88 kB / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.9496, allocations: 63.83 kB / 1.223 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.287e-05/0.9497, allocations: 16 kB / 1.223 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.972e-05/0.9498, allocations: 24 kB / 1.223 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.843e-05/0.9498, allocations: 7.984 kB / 1.223 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.9499, allocations: 63.81 kB / 1.223 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000274/0.9502, allocations: 147.2 kB / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.9502, allocations: 3.938 kB / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.345e-06/0.9502, allocations: 0 / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.054e-06/0.9503, allocations: 4 kB / 1.223 GB, free: 15.38 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0007389/0.951, allocations: 438.7 kB / 1.223 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.9511, allocations: 8.031 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.761e-05/0.9511, allocations: 38.75 kB / 1.223 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.857e-05/0.9512, allocations: 8.891 kB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.9513, allocations: 176.3 kB / 1.223 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.9514, allocations: 8.359 kB / 1.223 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.828e-05/0.9514, allocations: 12.38 kB / 1.223 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001387/0.9516, allocations: 50.19 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.9516, allocations: 3.938 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.908e-06/0.9516, allocations: 4 kB / 1.223 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.9516, allocations: 0 / 1.223 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.672e-05/0.9517, allocations: 15.98 kB / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005729/0.9522, allocations: 356.7 kB / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 9.013e-05/0.9523, allocations: 30.52 kB / 1.224 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.376e-05/0.9524, allocations: 20.94 kB / 1.224 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.11e-05/0.9524, allocations: 0 / 1.224 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001574/0.9526, allocations: 83.36 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.9526, allocations: 0 / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0002919/0.9529, allocations: 109.5 kB / 1.224 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.9529, allocations: 51.41 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.9531, allocations: 117.8 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.788e-05/0.9531, allocations: 33.7 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.737e-05/0.9532, allocations: 92.09 kB / 1.224 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.926e-05/0.9532, allocations: 15.91 kB / 1.224 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.9533, allocations: 53.67 kB / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0002043/0.9535, allocations: 319.2 kB / 1.225 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.9537, allocations: 59.97 kB / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.9538, allocations: 100.1 kB / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002818/0.9541, allocations: 159.6 kB / 1.225 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.9541, allocations: 0 / 1.225 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004336/0.9546, allocations: 252.9 kB / 1.225 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 8.41e-05/0.9547, allocations: 71.39 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.9547, allocations: 4.188 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.9547, allocations: 7.938 kB / 1.225 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.792e-05/0.9547, allocations: 7.984 kB / 1.225 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.9548, allocations: 0 / 1.225 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003638/0.9551, allocations: 55.83 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.342e-05/0.9552, allocations: 19.98 kB / 1.225 GB, free: 12.34 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: 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.0001254/0.9553, allocations: 125.8 kB / 1.226 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.379e-05/0.9553, allocations: 3.953 kB / 1.226 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.348e-05/0.9554, allocations: 12.38 kB / 1.226 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.9554, allocations: 0 / 1.226 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.9554, allocations: 0 / 1.226 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.9554, allocations: 0 / 1.226 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001775/0.9556, allocations: 185.5 kB / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.9556, allocations: 0 / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.768e-06/0.9556, allocations: 4 kB / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.9556, allocations: 0 / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.9556, allocations: 4 kB / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.9556, allocations: 0 / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.9556, allocations: 0 / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001651/0.9558, allocations: 113 kB / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.9559, allocations: 77.11 kB / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.956, allocations: 7.984 kB / 1.226 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.054e-05/0.956, allocations: 4.094 kB / 1.226 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/0.956, allocations: 7.938 kB / 1.226 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.956, allocations: 7.984 kB / 1.226 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.932e-05/0.9561, allocations: 91.22 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.9561, allocations: 0 / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002433/0.9564, allocations: 39.92 kB / 1.226 GB, free: 11.57 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 ($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.0006411/0.957, allocations: 0.6519 MB / 1.227 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003921/0.9574, allocations: 246.7 kB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.9574, allocations: 3.938 kB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 5.753e-05/0.9575, allocations: 31.92 kB / 1.227 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002485/0.9577, allocations: 15.98 kB / 1.227 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002176/0.9599, allocations: 1.702 MB / 1.229 GB, free: 8.754 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.9603, allocations: 0.6923 MB / 1.229 GB, free: 8.035 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.168e-05/0.9604, allocations: 4 kB / 1.229 GB, free: 8.031 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.377e-05/0.9604, allocations: 23.44 kB / 1.229 GB, free: 8.008 MB / 0.9512 GB Notification: Performance of SimCode: time 3.31e-07/0.9604, allocations: 0.5625 kB / 1.229 GB, free: 8.008 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02736/0.9878, allocations: 2.891 MB / 1.232 GB, free: 5.219 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.185/9.173, allocations: 13.66 kB / 1.232 GB, free: 5.211 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Controls_OBC_CDL_Logical_Validation_Nor.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nor_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches