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) 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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nand1.u1|nand1.u2|nand1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nand1.u1|nand1.u2|nand1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 104 kB / 16.35 MB, free: 5.824 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.001689/0.001689, allocations: 191.2 kB / 17.29 MB, free: 5.48 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.356/1.356, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.469/2.469, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 66.89 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.308, allocations: 153 MB / 1.027 GB, free: 2.051 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001896/0.3099, allocations: 0.6649 MB / 1.027 GB, free: 1.391 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001447/0.3114, allocations: 1.189 MB / 1.029 GB, free: 192 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.335e-05/0.3114, allocations: 4 kB / 1.029 GB, free: 188 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.203e-05/0.3115, allocations: 3.938 kB / 1.029 GB, free: 184 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.631e-05/0.3115, allocations: 11.86 kB / 1.029 GB, free: 172 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006355/0.3122, allocations: 226 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000226/0.3124, allocations: 179.8 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.161e-05/0.3125, allocations: 11.98 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.654e-05/0.3126, allocations: 67.83 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.3128, allocations: 63.83 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.119e-05/0.3128, allocations: 20 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.548e-05/0.3129, allocations: 24 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.104e-05/0.3129, allocations: 15.92 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.963e-05/0.313, allocations: 59.88 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000201/0.3132, allocations: 151.5 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3132, allocations: 0 / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3132, allocations: 0 / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.528e-06/0.3132, allocations: 4 kB / 1.029 GB, free: 15.37 MB / 0.8106 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.0005237/0.3138, allocations: 431.9 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.3138, allocations: 8.031 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.422e-05/0.3139, allocations: 16.84 kB / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.314, allocations: 168.3 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.314, allocations: 8.375 kB / 1.03 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.895e-05/0.314, allocations: 8.375 kB / 1.03 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001037/0.3141, allocations: 50.23 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-06/0.3142, allocations: 192 / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.3142, allocations: 7.938 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.3142, allocations: 0 / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.205e-05/0.3142, allocations: 19.97 kB / 1.03 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004973/0.3147, allocations: 356.7 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.446e-05/0.3148, allocations: 38.45 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.886e-05/0.3149, allocations: 16.94 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.628e-06/0.3149, allocations: 0 / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001582/0.315, allocations: 79.38 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 2.835e-06/0.315, allocations: 4 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0002423/0.3153, allocations: 105.5 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/0.3154, allocations: 59.41 kB / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.672e-05/0.3154, allocations: 117.8 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.3155, allocations: 33.64 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.467e-05/0.3156, allocations: 88.14 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/0.3156, allocations: 11.81 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.622e-05/0.3157, allocations: 49.69 kB / 1.031 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.3158, allocations: 327.1 kB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/0.3159, allocations: 59.97 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.3161, allocations: 96.12 kB / 1.031 GB, free: 13 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001884/0.3163, allocations: 159.6 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3163, allocations: 0 / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004064/0.3167, allocations: 260.8 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.303e-05/0.3168, allocations: 67.39 kB / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.3168, allocations: 4 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.3168, allocations: 0 / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.053e-05/0.3168, allocations: 4 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.3168, allocations: 3.984 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003265/0.3172, allocations: 56.06 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.081e-05/0.3172, allocations: 8 kB / 1.032 GB, free: 12.39 MB / 0.8106 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.992e-05/0.3173, allocations: 137.6 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.343e-05/0.3173, allocations: 7.906 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.55e-05/0.3174, allocations: 8.375 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.3174, allocations: 8 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.3174, allocations: 0 / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.3174, allocations: 0 / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.3175, allocations: 181.6 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3176, allocations: 0 / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.797e-06/0.3176, allocations: 0 / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.3176, allocations: 0 / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.3176, allocations: 8 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.3176, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.3176, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001581/0.3178, allocations: 117.3 kB / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.162e-05/0.3178, allocations: 85.02 kB / 1.032 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.3178, allocations: 4 kB / 1.032 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.554e-05/0.3179, allocations: 8.078 kB / 1.032 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.889e-05/0.3179, allocations: 3.938 kB / 1.032 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.666e-06/0.3179, allocations: 4 kB / 1.032 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.81e-05/0.318, allocations: 95.2 kB / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.318, allocations: 0 / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002352/0.3182, allocations: 36 kB / 1.033 GB, free: 11.61 MB / 0.8106 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.0001436/0.3184, allocations: 107.2 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003686/0.3188, allocations: 250.7 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3188, allocations: 0 / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.826e-05/0.3188, allocations: 31.92 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/0.3191, allocations: 12.23 kB / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003361/0.3194, allocations: 154.8 kB / 1.033 GB, free: 11 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.3197, allocations: 0.6885 MB / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.553e-05/0.3197, allocations: 4 kB / 1.034 GB, free: 10.28 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.036e-05/0.3197, allocations: 11.44 kB / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.3197, allocations: 0 / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of Templates: time 0.004345/0.3241, allocations: 1.858 MB / 1.036 GB, free: 8.438 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) 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/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches