Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008516/0.0008516, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 165.9 kB / 22.45 MB, free: 2.113 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9083/0.9083, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.727/1.727, allocations: 377.8 MB / 0.6221 GB, free: 8.641 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.885e-06/2.885e-06, allocations: 0 / 0.981 GB, free: 2.578 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.205e-05/2.494e-05, allocations: 2.281 kB / 0.981 GB, free: 2.574 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001924/0.001949, allocations: 0.6529 MB / 0.9816 GB, free: 1.922 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001175/0.003124, allocations: 1.217 MB / 0.9828 GB, free: 0.6914 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.274e-05/0.003166, allocations: 0 / 0.9828 GB, free: 0.6914 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.846e-05/0.003195, allocations: 3.938 kB / 0.9828 GB, free: 0.6875 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 7.49e-05/0.00327, allocations: 11.88 kB / 0.9828 GB, free: 0.6758 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005568/0.003827, allocations: 216 kB / 0.983 GB, free: 484 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.004009, allocations: 183.6 kB / 0.9832 GB, free: 300 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.844e-05/0.004107, allocations: 8 kB / 0.9832 GB, free: 292 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.004214, allocations: 95.91 kB / 0.9833 GB, free: 196 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.004317, allocations: 51.84 kB / 0.9833 GB, free: 144 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.484e-05/0.004341, allocations: 16 kB / 0.9833 GB, free: 128 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 6.085e-05/0.004402, allocations: 24 kB / 0.9834 GB, free: 104 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.982e-05/0.004422, allocations: 7.984 kB / 0.9834 GB, free: 96 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 5.593e-05/0.004478, allocations: 51.89 kB / 0.9834 GB, free: 44 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001955/0.004673, allocations: 179.6 kB / 0.9836 GB, free: 15.87 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.004677, allocations: 4 kB / 0.9836 GB, free: 15.86 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.505e-06/0.00468, allocations: 4 kB / 0.9836 GB, free: 15.86 MB / 0.948 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.004685, allocations: 0 / 0.9836 GB, free: 15.86 MB / 0.948 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.0004741/0.005159, allocations: 357.5 kB / 0.9839 GB, free: 15.46 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.005211, allocations: 8.031 kB / 0.984 GB, free: 15.46 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.209e-05/0.005243, allocations: 38.73 kB / 0.984 GB, free: 15.41 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.07e-05/0.005293, allocations: 16.83 kB / 0.984 GB, free: 15.39 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.764e-05/0.005381, allocations: 105.8 kB / 0.9841 GB, free: 15.27 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.005397, allocations: 16.31 kB / 0.9841 GB, free: 15.25 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.158e-05/0.005419, allocations: 8.375 kB / 0.9841 GB, free: 15.24 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001243/0.005543, allocations: 46.23 kB / 0.9842 GB, free: 15.19 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.005552, allocations: 4.188 kB / 0.9842 GB, free: 15.19 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.005563, allocations: 384 / 0.9842 GB, free: 15.19 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.005571, allocations: 8.125 kB / 0.9842 GB, free: 15.18 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.817e-05/0.005609, allocations: 15.98 kB / 0.9842 GB, free: 15.16 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004494/0.006058, allocations: 295.8 kB / 0.9845 GB, free: 14.83 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 8.497e-05/0.006143, allocations: 34.52 kB / 0.9845 GB, free: 14.79 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.611e-05/0.006169, allocations: 16.94 kB / 0.9845 GB, free: 14.77 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.006182, allocations: 7.922 kB / 0.9845 GB, free: 14.76 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002225/0.006404, allocations: 79.38 kB / 0.9846 GB, free: 14.67 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.006405, allocations: 0 / 0.9846 GB, free: 14.67 MB / 0.948 GB Notification: Performance of matching and sorting (n=7): time 0.000262/0.006667, allocations: 117.5 kB / 0.9847 GB, free: 14.55 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.016e-05/0.006718, allocations: 55.41 kB / 0.9848 GB, free: 14.48 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.424e-05/0.006812, allocations: 117.8 kB / 0.9849 GB, free: 14.36 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.006839, allocations: 29.7 kB / 0.9849 GB, free: 14.32 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 7.465e-05/0.006914, allocations: 92.09 kB / 0.985 GB, free: 14.23 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.00693, allocations: 15.91 kB / 0.985 GB, free: 14.21 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.116e-05/0.007002, allocations: 45.69 kB / 0.9851 GB, free: 14.16 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.798e-05/0.007099, allocations: 322.8 kB / 0.9854 GB, free: 13.84 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.00723, allocations: 119.4 kB / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.007363, allocations: 155.7 kB / 0.9856 GB, free: 13.53 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.007501, allocations: 163.5 kB / 0.9858 GB, free: 13.34 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.007507, allocations: 7.938 kB / 0.9858 GB, free: 13.34 MB / 0.948 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003248/0.007831, allocations: 316.8 kB / 0.9861 GB, free: 13 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.798e-05/0.007889, allocations: 70.2 kB / 0.9862 GB, free: 12.92 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.007898, allocations: 8.25 kB / 0.9862 GB, free: 12.91 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.007916, allocations: 0 / 0.9862 GB, free: 12.91 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.188e-05/0.007938, allocations: 8.125 kB / 0.9862 GB, free: 12.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.007945, allocations: 0 / 0.9862 GB, free: 12.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002137/0.008159, allocations: 55.89 kB / 0.9862 GB, free: 12.85 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.58e-05/0.008185, allocations: 15.97 kB / 0.9863 GB, free: 12.83 MB / 0.948 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.757e-05/0.008282, allocations: 140.7 kB / 0.9864 GB, free: 12.69 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.089e-05/0.008293, allocations: 7.938 kB / 0.9864 GB, free: 12.68 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.771e-05/0.008321, allocations: 16.44 kB / 0.9864 GB, free: 12.66 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.008323, allocations: 0 / 0.9864 GB, free: 12.66 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.008328, allocations: 0 / 0.9864 GB, free: 12.66 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.008332, allocations: 0 / 0.9864 GB, free: 12.66 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001013/0.008433, allocations: 148.7 kB / 0.9866 GB, free: 12.48 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.008434, allocations: 0 / 0.9866 GB, free: 12.48 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.901e-06/0.00844, allocations: 4 kB / 0.9866 GB, free: 12.47 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.008441, allocations: 0 / 0.9866 GB, free: 12.47 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.008448, allocations: 0 / 0.9866 GB, free: 12.47 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.008449, allocations: 0 / 0.9866 GB, free: 12.47 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.00845, allocations: 0 / 0.9866 GB, free: 12.47 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001178/0.008568, allocations: 117 kB / 0.9867 GB, free: 12.34 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 6.302e-06/0.008574, allocations: 8 kB / 0.9867 GB, free: 12.33 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.209e-05/0.008586, allocations: 0 / 0.9867 GB, free: 12.33 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.89e-05/0.008605, allocations: 11.98 kB / 0.9867 GB, free: 12.32 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.558e-05/0.008641, allocations: 0 / 0.9867 GB, free: 12.32 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-06/0.008647, allocations: 4 kB / 0.9867 GB, free: 12.32 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.856e-05/0.008685, allocations: 91.27 kB / 0.9868 GB, free: 12.23 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.008685, allocations: 0 / 0.9868 GB, free: 12.23 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001814/0.008867, allocations: 32 kB / 0.9868 GB, free: 12.2 MB / 0.948 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.0003275/0.009194, allocations: 0.6553 MB / 0.9875 GB, free: 11.51 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002542/0.009448, allocations: 282.1 kB / 0.9877 GB, free: 11.2 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.00945, allocations: 7.938 kB / 0.9877 GB, free: 11.19 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 2.779e-05/0.009478, allocations: 16 kB / 0.9877 GB, free: 11.18 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001674/0.009646, allocations: 20.2 kB / 0.9878 GB, free: 11.16 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.01107, allocations: 1.962 MB / 0.9897 GB, free: 9.02 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.37e-05/0.01112, allocations: 75.58 kB / 0.9898 GB, free: 8.926 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.498e-05/0.01115, allocations: 4 kB / 0.9898 GB, free: 8.922 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.438e-05/0.01119, allocations: 24.48 kB / 0.9898 GB, free: 8.898 MB / 0.948 GB Notification: Performance of SimCode: time 9.82e-07/0.01119, allocations: 0 / 0.9898 GB, free: 8.898 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01922/0.03041, allocations: 3.769 MB / 0.9935 GB, free: 5.324 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.783/6.814, allocations: 3.938 kB / 0.9935 GB, free: 5.32 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Nand_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Nand.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 10.896062348037958]