Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_9_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.009196/0.009196, allocations: 100.6 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.001835/0.001835, allocations: 195.5 kB / 16.68 MB, free: 5.957 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.277/2.277, allocations: 390.3 MB / 0.6648 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002458/0.002458, allocations: 63.91 kB / 0.9504 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9251/0.9276, allocations: 140.4 MB / 1.087 GB, free: 5.246 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002216/0.9299, allocations: 0.6616 MB / 1.088 GB, free: 4.836 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001369/0.9313, allocations: 1.188 MB / 1.089 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.819e-05/0.9313, allocations: 0 / 1.089 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.78e-05/0.9314, allocations: 9 kB / 1.089 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.751e-05/0.9315, allocations: 14.67 kB / 1.089 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007315/0.9322, allocations: 212.4 kB / 1.09 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002968/0.9325, allocations: 182.5 kB / 1.09 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.9326, allocations: 18.12 kB / 1.09 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.9327, allocations: 64.17 kB / 1.09 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001634/0.9329, allocations: 61.05 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.903e-05/0.933, allocations: 15.12 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.782e-05/0.9331, allocations: 29.64 kB / 1.09 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.773e-05/0.9331, allocations: 13 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.9332, allocations: 61.69 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003096/0.9335, allocations: 149.2 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.9335, allocations: 0.9688 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.653e-06/0.9335, allocations: 0 / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.9336, allocations: 0 / 1.09 GB, free: 3.625 MB / 0.8575 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.0004681/0.934, allocations: 435.7 kB / 1.09 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.9341, allocations: 9.781 kB / 1.091 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.746e-05/0.9341, allocations: 33.14 kB / 1.091 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.559e-05/0.9342, allocations: 12.89 kB / 1.091 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.785e-05/0.9343, allocations: 175.8 kB / 1.091 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.9343, allocations: 9.562 kB / 1.091 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.454e-05/0.9343, allocations: 9.203 kB / 1.091 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.9344, allocations: 47.06 kB / 1.091 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.9344, allocations: 7.875 kB / 1.091 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.9345, allocations: 8.797 kB / 1.091 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.9345, allocations: 0.9062 kB / 1.091 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.486e-05/0.9345, allocations: 13.06 kB / 1.091 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004482/0.935, allocations: 359 kB / 1.091 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 7.053e-05/0.935, allocations: 34.09 kB / 1.091 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.786e-05/0.9351, allocations: 20.72 kB / 1.091 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.9351, allocations: 5.344 kB / 1.091 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001388/0.9352, allocations: 73.55 kB / 1.091 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.9353, allocations: 0 / 1.091 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0002608/0.9355, allocations: 107.4 kB / 1.091 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.357e-05/0.9356, allocations: 57.62 kB / 1.091 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.206e-05/0.9356, allocations: 116.6 kB / 1.092 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.073e-05/0.9357, allocations: 29.7 kB / 1.092 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.349e-05/0.9357, allocations: 98.95 kB / 1.092 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.757e-05/0.9358, allocations: 10.42 kB / 1.092 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.9359, allocations: 49.03 kB / 1.092 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.909e-05/0.9359, allocations: 318.8 kB / 1.092 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.9361, allocations: 60.06 kB / 1.092 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001623/0.9363, allocations: 94.3 kB / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001748/0.9364, allocations: 163.4 kB / 1.092 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.9364, allocations: 0 / 1.092 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004356/0.9369, allocations: 261.3 kB / 1.093 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.811e-05/0.9369, allocations: 69.5 kB / 1.093 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.937, allocations: 5.375 kB / 1.093 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.937, allocations: 1.75 kB / 1.093 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.277e-05/0.937, allocations: 7.078 kB / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.937, allocations: 2.234 kB / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000357/0.9374, allocations: 56.03 kB / 1.093 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.285e-05/0.9374, allocations: 12.34 kB / 1.093 GB, free: 1.301 MB / 0.8575 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.319e-05/0.9375, allocations: 126.5 kB / 1.093 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.38e-05/0.9375, allocations: 7.438 kB / 1.093 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.652e-05/0.9376, allocations: 7.109 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.9376, allocations: 4.984 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.9376, allocations: 0.5625 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.9376, allocations: 0.9375 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00011/0.9377, allocations: 182.5 kB / 1.093 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.9377, allocations: 0.7812 kB / 1.093 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.063e-05/0.9377, allocations: 5.562 kB / 1.093 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.9377, allocations: 8.656 kB / 1.093 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.9378, allocations: 2.719 kB / 1.093 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.9378, allocations: 0.6562 kB / 1.093 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.9378, allocations: 0 / 1.093 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001407/0.9379, allocations: 112.3 kB / 1.093 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.583e-05/0.9379, allocations: 83.08 kB / 1.093 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.938, allocations: 2.469 kB / 1.093 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.238e-05/0.938, allocations: 5.453 kB / 1.093 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.649e-05/0.938, allocations: 8.891 kB / 1.093 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.9381, allocations: 8.188 kB / 1.093 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.393e-05/0.9381, allocations: 93.56 kB / 1.093 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9381, allocations: 3.938 kB / 1.093 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002411/0.9384, allocations: 27.73 kB / 1.093 GB, free: 0.6641 MB / 0.8575 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.0004158/0.9388, allocations: 0.6573 MB / 1.094 GB, free: 16.04 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003644/0.9391, allocations: 243.8 kB / 1.094 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.9392, allocations: 1.188 kB / 1.094 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 5.215e-05/0.9392, allocations: 31.28 kB / 1.094 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002423/0.9395, allocations: 15.67 kB / 1.094 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/0.9415, allocations: 1.718 MB / 1.096 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.9417, allocations: 0.6861 MB / 1.097 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.998e-05/0.9418, allocations: 13.73 kB / 1.097 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.861e-05/0.9418, allocations: 20.03 kB / 1.097 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/0.9418, allocations: 0 / 1.097 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02276/0.9646, allocations: 2.876 MB / 1.1 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.67/8.635, allocations: 6.906 kB / 1.1 GB, free: 13.21 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nand.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches