Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Nand,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_10_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.001313/0.001313, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 196.1 kB / 16.53 MB, free: 6.617 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.334/1.334, allocations: 222.9 MB / 240.2 MB, free: 4.207 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 2.442/2.442, allocations: 437 MB / 0.7104 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 67.89 kB / 0.8694 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6113/0.6128, allocations: 151.6 MB / 1.017 GB, free: 2.445 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001862/0.6147, allocations: 0.6579 MB / 1.018 GB, free: 1.785 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001416/0.6161, allocations: 1.183 MB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.309e-05/0.6162, allocations: 0 / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.098e-05/0.6163, allocations: 3.938 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.772e-05/0.6163, allocations: 11.86 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006707/0.617, allocations: 211.2 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002045/0.6172, allocations: 187.7 kB / 1.02 GB, free: 188 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.6174, allocations: 11.98 kB / 1.02 GB, free: 176 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.6175, allocations: 67.88 kB / 1.02 GB, free: 108 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.361e-05/0.6176, allocations: 51.88 kB / 1.02 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.581e-05/0.6176, allocations: 16 kB / 1.02 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.604e-05/0.6177, allocations: 31.98 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.241e-05/0.6177, allocations: 3.984 kB / 1.02 GB, free: 4 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 8.541e-05/0.6178, allocations: 63.77 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002109/0.618, allocations: 149.9 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.6181, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.453e-06/0.6181, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.385e-05/0.6181, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.7794 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.0005719/0.6187, allocations: 438.6 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.6187, allocations: 12.03 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.601e-05/0.6188, allocations: 38.75 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.902e-05/0.6188, allocations: 12.84 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.6189, allocations: 176.3 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.6189, allocations: 4.375 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.619, allocations: 8.375 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/0.6191, allocations: 50.23 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.6191, allocations: 7.875 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.6191, allocations: 4 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.6191, allocations: 0 / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.983e-05/0.6192, allocations: 12 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004459/0.6196, allocations: 356.7 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.306e-05/0.6197, allocations: 34.56 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.804e-05/0.6197, allocations: 12.86 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.051e-05/0.6198, allocations: 3.938 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001359/0.6199, allocations: 91.44 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.6199, allocations: 0 / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0002491/0.6202, allocations: 105.5 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.825e-05/0.6202, allocations: 59.34 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.72e-05/0.6203, allocations: 113.8 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.6204, allocations: 33.7 kB / 1.022 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.227e-05/0.6204, allocations: 88.12 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.6204, allocations: 19.8 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.968e-05/0.6205, allocations: 49.69 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.6207, allocations: 322.8 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.6208, allocations: 59.95 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001398/0.6209, allocations: 91.89 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001879/0.6211, allocations: 159.6 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.6211, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004275/0.6216, allocations: 264.8 kB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.9e-05/0.6216, allocations: 67.39 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.6216, allocations: 0 / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.6217, allocations: 4.469 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.01e-05/0.6217, allocations: 12 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.6217, allocations: 4 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003513/0.6221, allocations: 59.8 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.261e-05/0.6221, allocations: 15.98 kB / 1.023 GB, free: 12.75 MB / 0.7794 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 9.323e-05/0.6222, allocations: 125.8 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.514e-05/0.6222, allocations: 11.91 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.248e-05/0.6222, allocations: 8.375 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.6223, allocations: 4 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.6223, allocations: 0 / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.6223, allocations: 0 / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000128/0.6224, allocations: 177.6 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.6224, allocations: 0 / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.149e-05/0.6224, allocations: 8 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.6224, allocations: 0 / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.253e-06/0.6224, allocations: 0 / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.6224, allocations: 4 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.6225, allocations: 4 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001431/0.6226, allocations: 112.9 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.092e-05/0.6226, allocations: 81.11 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.392e-05/0.6227, allocations: 0 / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.185e-05/0.6227, allocations: 7.984 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.542e-05/0.6227, allocations: 4 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.6227, allocations: 4 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.669e-05/0.6228, allocations: 95.27 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.473e-06/0.6228, allocations: 0 / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002362/0.623, allocations: 39.84 kB / 1.023 GB, free: 11.98 MB / 0.7794 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.000402/0.6234, allocations: 0.65 MB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003136/0.6238, allocations: 242.9 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.6238, allocations: 4.062 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.709e-05/0.6238, allocations: 23.94 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.6241, allocations: 20.2 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00173/0.6258, allocations: 1.72 MB / 1.026 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000202/0.626, allocations: 0.6885 MB / 1.027 GB, free: 8.441 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.734e-05/0.6261, allocations: 8 kB / 1.027 GB, free: 8.434 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.001e-05/0.6261, allocations: 19.44 kB / 1.027 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.6261, allocations: 0 / 1.027 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/0.6454, allocations: 2.855 MB / 1.029 GB, free: 5.645 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.023/7.669, allocations: 5.828 kB / 1.029 GB, free: 5.641 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Logical_Validation_Nand.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches