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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002054/0.002054, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.168/3.168, allocations: 497.2 MB / 0.7811 GB, free: 33.58 MB / 0.6231 GB " [Timeout remaining time 176] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001998, allocations: 70.92 kB / 1.134 GB, free: 33.66 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3664, allocations: 173.9 MB / 1.304 GB, free: 1.535 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002112/0.3685, allocations: 0.6429 MB / 1.305 GB, free: 0.8945 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001745/0.3702, allocations: 1.198 MB / 1.306 GB, free: 15.68 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.411e-05/0.3703, allocations: 0 / 1.306 GB, free: 15.68 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.671e-05/0.3703, allocations: 3.938 kB / 1.306 GB, free: 15.68 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.713e-05/0.3704, allocations: 11.88 kB / 1.306 GB, free: 15.67 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006914/0.3711, allocations: 222.8 kB / 1.306 GB, free: 15.46 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002706/0.3714, allocations: 163.8 kB / 1.306 GB, free: 15.3 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.665e-05/0.3715, allocations: 12 kB / 1.306 GB, free: 15.29 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.3716, allocations: 71.88 kB / 1.306 GB, free: 15.21 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001403/0.3717, allocations: 63.78 kB / 1.306 GB, free: 15.15 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.294e-05/0.3717, allocations: 16 kB / 1.306 GB, free: 15.14 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.267e-05/0.3718, allocations: 31.92 kB / 1.306 GB, free: 15.11 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.006e-05/0.3718, allocations: 7.984 kB / 1.306 GB, free: 15.1 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 8.097e-05/0.3719, allocations: 59.83 kB / 1.306 GB, free: 15.04 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000222/0.3721, allocations: 147.9 kB / 1.307 GB, free: 14.89 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3721, allocations: 4 kB / 1.307 GB, free: 14.89 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3721, allocations: 0 / 1.307 GB, free: 14.89 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.3722, allocations: 0 / 1.307 GB, free: 14.89 MB / 1.014 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.0005861/0.3727, allocations: 438.6 kB / 1.307 GB, free: 14.4 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.3728, allocations: 12.92 kB / 1.307 GB, free: 14.39 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.953e-05/0.3728, allocations: 30.75 kB / 1.307 GB, free: 14.35 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.424e-05/0.3729, allocations: 12.89 kB / 1.307 GB, free: 14.34 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001577/0.373, allocations: 168.3 kB / 1.307 GB, free: 14.13 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.3731, allocations: 8.312 kB / 1.307 GB, free: 14.12 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.209e-05/0.3731, allocations: 16.38 kB / 1.307 GB, free: 14.11 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000127/0.3732, allocations: 50.17 kB / 1.307 GB, free: 14.05 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.3732, allocations: 7.875 kB / 1.307 GB, free: 14.05 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.3732, allocations: 7.984 kB / 1.307 GB, free: 14.04 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.3732, allocations: 4 kB / 1.307 GB, free: 14.04 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.88e-05/0.3733, allocations: 8 kB / 1.307 GB, free: 14.03 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005216/0.3738, allocations: 352.8 kB / 1.308 GB, free: 13.63 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 8.168e-05/0.3739, allocations: 34.5 kB / 1.308 GB, free: 13.59 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.93e-05/0.3739, allocations: 12.86 kB / 1.308 GB, free: 13.57 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.117e-05/0.3739, allocations: 0 / 1.308 GB, free: 13.57 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001959/0.3741, allocations: 95.39 kB / 1.308 GB, free: 13.47 MB / 1.014 GB Notification: Performance of pre-optimization done (n=7): time 1.113e-06/0.3741, allocations: 0 / 1.308 GB, free: 13.47 MB / 1.014 GB Notification: Performance of matching and sorting (n=7): time 0.0002685/0.3744, allocations: 97.61 kB / 1.308 GB, free: 13.37 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.306e-05/0.3745, allocations: 59.39 kB / 1.308 GB, free: 13.3 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.3746, allocations: 121.7 kB / 1.308 GB, free: 13.17 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.3746, allocations: 33.7 kB / 1.308 GB, free: 13.13 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 7.893e-05/0.3747, allocations: 88.14 kB / 1.308 GB, free: 13.04 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.375e-05/0.3747, allocations: 23.88 kB / 1.308 GB, free: 13.02 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.611e-05/0.3748, allocations: 45.69 kB / 1.308 GB, free: 12.96 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001601/0.375, allocations: 322.8 kB / 1.309 GB, free: 12.64 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001436/0.3751, allocations: 63.95 kB / 1.309 GB, free: 12.58 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.3753, allocations: 84.27 kB / 1.309 GB, free: 12.48 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/0.3755, allocations: 168 kB / 1.309 GB, free: 12.29 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.3755, allocations: 4 kB / 1.309 GB, free: 12.29 MB / 1.014 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004556/0.3759, allocations: 272.8 kB / 1.309 GB, free: 12 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 7.402e-05/0.376, allocations: 67.39 kB / 1.309 GB, free: 11.92 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.376, allocations: 4.125 kB / 1.309 GB, free: 11.92 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.376, allocations: 4 kB / 1.309 GB, free: 11.91 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.212e-05/0.3761, allocations: 0 / 1.309 GB, free: 11.91 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.3761, allocations: 4 kB / 1.309 GB, free: 11.91 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003388/0.3764, allocations: 51.94 kB / 1.309 GB, free: 11.86 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.229e-05/0.3764, allocations: 11.98 kB / 1.309 GB, free: 11.85 MB / 1.014 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.0001211/0.3766, allocations: 129.8 kB / 1.309 GB, free: 11.71 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.806e-05/0.3766, allocations: 7.953 kB / 1.309 GB, free: 11.7 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.099e-05/0.3766, allocations: 12.31 kB / 1.309 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.3766, allocations: 0 / 1.309 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.3766, allocations: 0 / 1.309 GB, free: 11.68 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.466e-05/0.3766, allocations: 11.92 kB / 1.309 GB, free: 11.67 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.3768, allocations: 173.5 kB / 1.31 GB, free: 11.45 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3768, allocations: 0 / 1.31 GB, free: 11.45 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.236e-06/0.3768, allocations: 4 kB / 1.31 GB, free: 11.45 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3768, allocations: 0 / 1.31 GB, free: 11.45 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.3768, allocations: 11.98 kB / 1.31 GB, free: 11.44 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3768, allocations: 0 / 1.31 GB, free: 11.44 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3768, allocations: 4 kB / 1.31 GB, free: 11.43 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001742/0.377, allocations: 109 kB / 1.31 GB, free: 11.31 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 6.336e-05/0.3771, allocations: 85.06 kB / 1.31 GB, free: 11.21 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.779e-05/0.3771, allocations: 4 kB / 1.31 GB, free: 11.2 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.949e-05/0.3771, allocations: 0 / 1.31 GB, free: 11.2 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.163e-05/0.3771, allocations: 11.92 kB / 1.31 GB, free: 11.19 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.3772, allocations: 8 kB / 1.31 GB, free: 11.18 MB / 1.014 GB Notification: Performance of sorting global known variables: time 5.814e-05/0.3772, allocations: 91.27 kB / 1.31 GB, free: 11.09 MB / 1.014 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3772, allocations: 288 / 1.31 GB, free: 11.09 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002356/0.3775, allocations: 28 kB / 1.31 GB, free: 11.07 MB / 1.014 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.0005594/0.378, allocations: 0.6475 MB / 1.311 GB, free: 10.39 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0003585/0.3784, allocations: 222.7 kB / 1.311 GB, free: 10.15 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3784, allocations: 0 / 1.311 GB, free: 10.15 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 5.422e-05/0.3784, allocations: 31.91 kB / 1.311 GB, free: 10.12 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.3787, allocations: 13.7 kB / 1.311 GB, free: 10.11 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.3807, allocations: 1.713 MB / 1.312 GB, free: 8.27 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.3811, allocations: 0.6914 MB / 1.313 GB, free: 7.555 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.018e-05/0.3811, allocations: 4 kB / 1.313 GB, free: 7.551 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.333e-05/0.3811, allocations: 23.44 kB / 1.313 GB, free: 7.527 MB / 1.014 GB Notification: Performance of SimCode: time 6.01e-07/0.3811, allocations: 0 / 1.313 GB, free: 7.527 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02596/0.4071, allocations: 2.9 MB / 1.316 GB, free: 4.746 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.178/8.585, allocations: 6.328 kB / 1.316 GB, free: 4.742 MB / 1.014 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Nand_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Nand.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.195439443923533]