Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.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.Nand,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",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.005689/0.005689, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001198/0.001198, allocations: 192.6 kB / 16.67 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.583/2.583, allocations: 469.4 MB / 0.7422 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 63.91 kB / 1.064 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9278/0.9292, allocations: 159.1 MB / 1.22 GB, free: 2.254 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002374/0.9316, allocations: 0.6509 MB / 1.22 GB, free: 1.602 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001661/0.9333, allocations: 1.19 MB / 1.222 GB, free: 408 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.465e-05/0.9334, allocations: 0 / 1.222 GB, free: 408 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.442e-05/0.9334, allocations: 3.938 kB / 1.222 GB, free: 404 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.158e-05/0.9335, allocations: 15.92 kB / 1.222 GB, free: 388 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007639/0.9343, allocations: 222 kB / 1.222 GB, free: 172 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003173/0.9346, allocations: 179.8 kB / 1.222 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.9348, allocations: 19.92 kB / 1.222 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001376/0.9349, allocations: 67.89 kB / 1.222 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.9351, allocations: 59.84 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.74e-05/0.9351, allocations: 12 kB / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 9.472e-05/0.9352, allocations: 35.98 kB / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.58e-05/0.9353, allocations: 7.984 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 9.774e-05/0.9354, allocations: 59.81 kB / 1.222 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002663/0.9356, allocations: 142.3 kB / 1.222 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 8.186e-06/0.9356, allocations: 0 / 1.222 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.404e-06/0.9357, allocations: 3.938 kB / 1.222 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.673e-06/0.9357, allocations: 0 / 1.222 GB, free: 15.59 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.0006207/0.9363, allocations: 439.6 kB / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.9363, allocations: 8.625 kB / 1.223 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.866e-05/0.9364, allocations: 34.75 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.441e-05/0.9365, allocations: 16.89 kB / 1.223 GB, free: 15.03 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.9366, allocations: 180.2 kB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.9366, allocations: 8.359 kB / 1.223 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.6e-05/0.9367, allocations: 8.375 kB / 1.223 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001245/0.9368, allocations: 50.25 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.9368, allocations: 3.938 kB / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.9368, allocations: 0 / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.9368, allocations: 0 / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.245e-05/0.9369, allocations: 15.98 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005092/0.9374, allocations: 360.6 kB / 1.223 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 8.111e-05/0.9375, allocations: 30.58 kB / 1.223 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.086e-05/0.9375, allocations: 16.94 kB / 1.223 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.108e-05/0.9376, allocations: 0 / 1.223 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002017/0.9378, allocations: 87.3 kB / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.203e-06/0.9378, allocations: 4 kB / 1.224 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0002733/0.9381, allocations: 101.6 kB / 1.224 GB, free: 14.06 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/0.9381, allocations: 55.41 kB / 1.224 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.769e-05/0.9382, allocations: 117.8 kB / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.091e-05/0.9383, allocations: 33.7 kB / 1.224 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.666e-05/0.9383, allocations: 88.09 kB / 1.224 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.962e-05/0.9384, allocations: 15.91 kB / 1.224 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.512e-05/0.9385, allocations: 45.69 kB / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.9386, allocations: 330.8 kB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.9387, allocations: 59.97 kB / 1.224 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.9389, allocations: 92.19 kB / 1.224 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002001/0.9391, allocations: 164 kB / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.9391, allocations: 0 / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004294/0.9395, allocations: 256.9 kB / 1.225 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 7.211e-05/0.9396, allocations: 67.39 kB / 1.225 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.9396, allocations: 7.938 kB / 1.225 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.9397, allocations: 0 / 1.225 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.593e-05/0.9397, allocations: 12.05 kB / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.9397, allocations: 0 / 1.225 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003455/0.9401, allocations: 67.83 kB / 1.225 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.542e-05/0.9401, allocations: 15.98 kB / 1.225 GB, free: 12.54 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,nand1.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.0001148/0.9402, allocations: 125.4 kB / 1.225 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.582e-05/0.9402, allocations: 7.953 kB / 1.225 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.899e-05/0.9403, allocations: 8.375 kB / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.9403, allocations: 8 kB / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.9403, allocations: 0 / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.9403, allocations: 0 / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001512/0.9405, allocations: 181.6 kB / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.9405, allocations: 0 / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.376e-06/0.9405, allocations: 0 / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.9405, allocations: 0 / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.9405, allocations: 4 kB / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.9405, allocations: 0 / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.9405, allocations: 0 / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001472/0.9407, allocations: 120.9 kB / 1.225 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.109e-05/0.9407, allocations: 77.11 kB / 1.226 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.801e-05/0.9407, allocations: 3.984 kB / 1.226 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.391e-05/0.9408, allocations: 8 kB / 1.226 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.985e-05/0.9408, allocations: 0 / 1.226 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.477e-06/0.9408, allocations: 7.984 kB / 1.226 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.137e-05/0.9409, allocations: 91.22 kB / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9409, allocations: 0 / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002463/0.9411, allocations: 35.94 kB / 1.226 GB, free: 11.78 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,nand1.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.0005116/0.9417, allocations: 0.6631 MB / 1.226 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003594/0.942, allocations: 238.7 kB / 1.227 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.9421, allocations: 4 kB / 1.227 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 4.68e-05/0.9421, allocations: 24.23 kB / 1.227 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002403/0.9424, allocations: 19.98 kB / 1.227 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.9444, allocations: 1.717 MB / 1.228 GB, free: 8.949 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002946/0.9447, allocations: 0.6885 MB / 1.229 GB, free: 8.234 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.107e-05/0.9448, allocations: 7.984 kB / 1.229 GB, free: 8.227 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.205e-05/0.9448, allocations: 15.44 kB / 1.229 GB, free: 8.211 MB / 0.9512 GB Notification: Performance of SimCode: time 5.11e-07/0.9448, allocations: 0 / 1.229 GB, free: 8.211 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01968/0.9645, allocations: 2.89 MB / 1.232 GB, free: 5.438 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.789/8.754, allocations: 16.52 kB / 1.232 GB, free: 5.422 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_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_Nand.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches