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.001101/0.001101, allocations: 108 kB / 15.6 MB, free: 132 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.001252/0.001253, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.362/1.362, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.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.496/2.496, allocations: 390.3 MB / 0.6647 GB, free: 264 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 67.89 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7151/0.7165, allocations: 140.4 MB / 0.9497 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001814/0.7184, allocations: 0.6486 MB / 0.9504 GB, free: 8.695 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001291/0.7197, allocations: 1.19 MB / 0.9515 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.6e-05/0.7197, allocations: 0 / 0.9515 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.123e-05/0.7198, allocations: 3.938 kB / 0.9515 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.286e-05/0.7199, allocations: 13.28 kB / 0.9516 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006246/0.7205, allocations: 212.8 kB / 0.9518 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002207/0.7207, allocations: 183.1 kB / 0.9519 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.7208, allocations: 8.562 kB / 0.9519 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.7209, allocations: 72.16 kB / 0.952 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.7211, allocations: 53.31 kB / 0.9521 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.199e-05/0.7211, allocations: 15.06 kB / 0.9521 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.248e-05/0.7212, allocations: 24.61 kB / 0.9521 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.816e-05/0.7212, allocations: 15.69 kB / 0.9521 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.512e-05/0.7213, allocations: 54.31 kB / 0.9522 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001844/0.7215, allocations: 156.3 kB / 0.9523 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.7215, allocations: 3.938 kB / 0.9523 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.513e-06/0.7215, allocations: 1.031 kB / 0.9523 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.7215, allocations: 0 / 0.9523 GB, free: 7.227 MB / 0.7169 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.0004632/0.722, allocations: 430.2 kB / 0.9527 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.7221, allocations: 8.969 kB / 0.9527 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.79e-05/0.7221, allocations: 39.98 kB / 0.9528 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.424e-05/0.7221, allocations: 8.531 kB / 0.9528 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.757e-05/0.7222, allocations: 174.7 kB / 0.953 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.7223, allocations: 9.5 kB / 0.953 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.07e-05/0.7223, allocations: 8.656 kB / 0.953 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.7224, allocations: 52.3 kB / 0.953 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.7224, allocations: 3.938 kB / 0.953 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.7225, allocations: 1.344 kB / 0.953 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.7225, allocations: 3.938 kB / 0.953 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.004e-05/0.7225, allocations: 15.36 kB / 0.953 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003924/0.7229, allocations: 350.7 kB / 0.9534 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.857e-05/0.723, allocations: 36.42 kB / 0.9534 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.693e-05/0.723, allocations: 18.91 kB / 0.9534 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.553e-06/0.723, allocations: 1.219 kB / 0.9534 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001484/0.7232, allocations: 83.95 kB / 0.9535 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.7232, allocations: 0 / 0.9535 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0002195/0.7234, allocations: 99.81 kB / 0.9536 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.914e-05/0.7235, allocations: 58.09 kB / 0.9537 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.816e-05/0.7235, allocations: 121.8 kB / 0.9538 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/0.7236, allocations: 29.77 kB / 0.9538 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.418e-05/0.7236, allocations: 88.98 kB / 0.9539 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.787e-05/0.7236, allocations: 18.64 kB / 0.9539 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.53e-05/0.7237, allocations: 47.56 kB / 0.954 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.801e-05/0.7238, allocations: 325.3 kB / 0.9543 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.7239, allocations: 59.19 kB / 0.9543 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.724, allocations: 102.2 kB / 0.9544 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.7242, allocations: 156 kB / 0.9546 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.7242, allocations: 5.188 kB / 0.9546 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003749/0.7246, allocations: 262.6 kB / 0.9548 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.635e-05/0.7246, allocations: 69.98 kB / 0.9549 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.7246, allocations: 1.531 kB / 0.9549 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.7247, allocations: 2.094 kB / 0.9549 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.871e-05/0.7247, allocations: 1.375 kB / 0.9549 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.7247, allocations: 10.2 kB / 0.9549 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000364/0.7251, allocations: 55.16 kB / 0.955 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.187e-05/0.7251, allocations: 17.77 kB / 0.955 GB, free: 4.703 MB / 0.7169 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 7.857e-05/0.7252, allocations: 125.6 kB / 0.9551 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.268e-05/0.7252, allocations: 6.656 kB / 0.9551 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.542e-05/0.7252, allocations: 13.77 kB / 0.9551 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.7252, allocations: 1.469 kB / 0.9551 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.7253, allocations: 4 kB / 0.9551 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.7253, allocations: 1.219 kB / 0.9551 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.972e-05/0.7254, allocations: 176 kB / 0.9553 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.7254, allocations: 5 kB / 0.9553 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.486e-06/0.7254, allocations: 1.031 kB / 0.9553 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.7254, allocations: 1.5 kB / 0.9553 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.7254, allocations: 0 / 0.9553 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.7254, allocations: 1.469 kB / 0.9553 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.7254, allocations: 4.078 kB / 0.9553 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001176/0.7255, allocations: 124.7 kB / 0.9554 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.086e-05/0.7256, allocations: 82.5 kB / 0.9555 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.7256, allocations: 1.5 kB / 0.9555 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.882e-05/0.7256, allocations: 0 / 0.9555 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.593e-05/0.7256, allocations: 10.8 kB / 0.9555 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-06/0.7257, allocations: 4.031 kB / 0.9555 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.358e-05/0.7257, allocations: 85.78 kB / 0.9556 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7257, allocations: 1.5 kB / 0.9556 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000246/0.7259, allocations: 33.86 kB / 0.9556 GB, free: 4.043 MB / 0.7169 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.0003233/0.7263, allocations: 0.6554 MB / 0.9563 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002811/0.7266, allocations: 244.9 kB / 0.9565 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.7266, allocations: 0 / 0.9565 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.118e-05/0.7266, allocations: 24.67 kB / 0.9565 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002195/0.7269, allocations: 23.86 kB / 0.9565 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001961/0.7288, allocations: 1.716 MB / 0.9582 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001696/0.729, allocations: 0.6884 MB / 0.9589 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.638e-05/0.7291, allocations: 7.594 kB / 0.9589 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.621e-05/0.7291, allocations: 19.39 kB / 0.9589 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.7291, allocations: 4 kB / 0.9589 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01956/0.7487, allocations: 2.853 MB / 0.9617 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.518/8.267, allocations: 14.12 kB / 0.9617 GB, free: 15.42 MB / 0.7325 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