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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.008427/0.008427, allocations: 97.41 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.002496/0.002496, allocations: 195.8 kB / 16.67 MB, free: 5.961 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.461/1.461, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.925/2.925, allocations: 482.4 MB / 0.7548 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 63.91 kB / 1.083 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3187, allocations: 162.2 MB / 1.241 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002433/0.3212, allocations: 0.6671 MB / 1.242 GB, free: 9.57 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001891/0.3231, allocations: 1.178 MB / 1.243 GB, free: 8.379 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.84e-05/0.3232, allocations: 0 / 1.243 GB, free: 8.379 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.693e-05/0.3233, allocations: 3.938 kB / 1.243 GB, free: 8.375 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.8e-05/0.3234, allocations: 15.92 kB / 1.243 GB, free: 8.359 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007846/0.3242, allocations: 222.3 kB / 1.243 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0004156/0.3246, allocations: 183.7 kB / 1.244 GB, free: 7.969 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.3247, allocations: 11.98 kB / 1.244 GB, free: 7.957 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.3249, allocations: 63.89 kB / 1.244 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.325, allocations: 71.83 kB / 1.244 GB, free: 7.824 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.105e-05/0.3251, allocations: 12 kB / 1.244 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.3252, allocations: 31.98 kB / 1.244 GB, free: 7.781 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.367e-05/0.3252, allocations: 8 kB / 1.244 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 9.618e-05/0.3253, allocations: 55.81 kB / 1.244 GB, free: 7.719 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002482/0.3256, allocations: 155.5 kB / 1.244 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.3256, allocations: 0 / 1.244 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.243e-06/0.3256, allocations: 0 / 1.244 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.3256, allocations: 0 / 1.244 GB, free: 7.566 MB / 0.9981 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.0006111/0.3262, allocations: 446.6 kB / 1.244 GB, free: 7.066 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.3263, allocations: 8.031 kB / 1.244 GB, free: 7.059 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.974e-05/0.3263, allocations: 30.75 kB / 1.245 GB, free: 7.02 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.897e-05/0.3264, allocations: 12.89 kB / 1.245 GB, free: 7.008 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.3265, allocations: 176.3 kB / 1.245 GB, free: 6.797 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.3266, allocations: 4.375 kB / 1.245 GB, free: 6.793 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.102e-05/0.3266, allocations: 12.38 kB / 1.245 GB, free: 6.781 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001177/0.3267, allocations: 42.25 kB / 1.245 GB, free: 6.734 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.3267, allocations: 7.938 kB / 1.245 GB, free: 6.727 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.3268, allocations: 3.984 kB / 1.245 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.3268, allocations: 4 kB / 1.245 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.225e-05/0.3268, allocations: 15.94 kB / 1.245 GB, free: 6.703 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005602/0.3274, allocations: 352.7 kB / 1.245 GB, free: 6.309 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.075e-05/0.3275, allocations: 38.55 kB / 1.245 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.57e-05/0.3275, allocations: 12.86 kB / 1.245 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.085e-05/0.3276, allocations: 0 / 1.245 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002349/0.3278, allocations: 87.41 kB / 1.245 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/0.3278, allocations: 0 / 1.245 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0002921/0.3281, allocations: 101.6 kB / 1.245 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.906e-05/0.3282, allocations: 59.39 kB / 1.245 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.3283, allocations: 113.8 kB / 1.246 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.3283, allocations: 33.7 kB / 1.246 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.813e-05/0.3284, allocations: 96.03 kB / 1.246 GB, free: 5.715 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.2e-05/0.3285, allocations: 15.89 kB / 1.246 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.3286, allocations: 50.06 kB / 1.246 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3287, allocations: 322.8 kB / 1.246 GB, free: 5.32 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.3289, allocations: 59.95 kB / 1.246 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001579/0.329, allocations: 96.2 kB / 1.246 GB, free: 5.152 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002145/0.3293, allocations: 163.6 kB / 1.246 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.3293, allocations: 0 / 1.246 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004548/0.3297, allocations: 260.8 kB / 1.247 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.517e-05/0.3298, allocations: 67.39 kB / 1.247 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.3298, allocations: 0 / 1.247 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.3298, allocations: 4.125 kB / 1.247 GB, free: 4.609 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.275e-05/0.3299, allocations: 7.938 kB / 1.247 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.3299, allocations: 4 kB / 1.247 GB, free: 4.598 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003523/0.3302, allocations: 59.83 kB / 1.247 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.285e-05/0.3303, allocations: 11.98 kB / 1.247 GB, free: 4.527 MB / 0.9981 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.0001172/0.3304, allocations: 122.3 kB / 1.247 GB, free: 4.398 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.881e-05/0.3305, allocations: 11.95 kB / 1.247 GB, free: 4.387 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.335e-05/0.3305, allocations: 8.375 kB / 1.247 GB, free: 4.371 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.3305, allocations: 4 kB / 1.247 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.3305, allocations: 3.984 kB / 1.247 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3305, allocations: 0 / 1.247 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001616/0.3307, allocations: 177.6 kB / 1.247 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3307, allocations: 0 / 1.247 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.347e-06/0.3307, allocations: 0 / 1.247 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3307, allocations: 0 / 1.247 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.3307, allocations: 11.98 kB / 1.247 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3307, allocations: 7.938 kB / 1.247 GB, free: 4.121 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3307, allocations: 0 / 1.247 GB, free: 4.121 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001583/0.3309, allocations: 113.3 kB / 1.247 GB, free: 3.992 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.67e-05/0.331, allocations: 77.11 kB / 1.247 GB, free: 3.898 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.738e-05/0.331, allocations: 4.094 kB / 1.247 GB, free: 3.895 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.984e-05/0.331, allocations: 3.938 kB / 1.247 GB, free: 3.891 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.384e-05/0.3311, allocations: 7.984 kB / 1.247 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-06/0.3311, allocations: 4 kB / 1.247 GB, free: 3.879 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.649e-05/0.3311, allocations: 95.27 kB / 1.247 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.3311, allocations: 0 / 1.247 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002431/0.3314, allocations: 32 kB / 1.247 GB, free: 3.754 MB / 0.9981 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.0005824/0.332, allocations: 0.6513 MB / 1.248 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003626/0.3323, allocations: 250.7 kB / 1.248 GB, free: 2.805 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3324, allocations: 0 / 1.248 GB, free: 2.805 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 5.266e-05/0.3324, allocations: 23.98 kB / 1.248 GB, free: 2.781 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002505/0.3327, allocations: 20.11 kB / 1.248 GB, free: 2.762 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002055/0.3347, allocations: 1.717 MB / 1.25 GB, free: 0.9258 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.3351, allocations: 0.6885 MB / 1.251 GB, free: 216 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.491e-05/0.3351, allocations: 4 kB / 1.251 GB, free: 212 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.161e-05/0.3352, allocations: 15.42 kB / 1.251 GB, free: 196 kB / 0.9981 GB Notification: Performance of SimCode: time 4.31e-07/0.3352, allocations: 4.562 kB / 1.251 GB, free: 192 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.534/0.8692, allocations: 2.88 MB / 1.253 GB, free: 14.68 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.94/8.809, allocations: 12.77 kB / 1.253 GB, free: 14.68 MB / 0.9981 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 400 --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