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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001183/0.001183, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001294/0.001294, allocations: 191.1 kB / 16.25 MB, free: 6.625 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.652/1.652, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.954/2.954, allocations: 461.9 MB / 0.7343 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001479, allocations: 71.56 kB / 0.8986 GB, free: 37.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4165/0.418, allocations: 157.4 MB / 1.052 GB, free: 8.738 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002483/0.4206, allocations: 0.7078 MB / 1.053 GB, free: 8.027 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00164/0.4223, allocations: 1.198 MB / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.302e-05/0.4223, allocations: 0 / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.064e-05/0.4224, allocations: 7.922 kB / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.855e-05/0.4225, allocations: 11.92 kB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007202/0.4232, allocations: 193.6 kB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002506/0.4235, allocations: 187.6 kB / 1.055 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.4236, allocations: 8 kB / 1.055 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.4237, allocations: 71.88 kB / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001115/0.4238, allocations: 47.88 kB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.375e-05/0.4239, allocations: 16 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.208e-05/0.424, allocations: 27.98 kB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.586e-05/0.424, allocations: 11.94 kB / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.624e-05/0.4241, allocations: 59.88 kB / 1.055 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.4243, allocations: 151.5 kB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.4244, allocations: 0 / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.753e-06/0.4244, allocations: 4 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.4244, allocations: 0 / 1.055 GB, free: 6.039 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.0006891/0.4251, allocations: 438.9 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.4251, allocations: 12.56 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.29e-05/0.4252, allocations: 12.84 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001393/0.4253, allocations: 168.4 kB / 1.056 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.4254, allocations: 4.375 kB / 1.056 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.591e-05/0.4254, allocations: 12.38 kB / 1.056 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000127/0.4255, allocations: 46.25 kB / 1.056 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.4256, allocations: 4.188 kB / 1.056 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.4256, allocations: 7.922 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.4256, allocations: 0 / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.749e-05/0.4256, allocations: 19.92 kB / 1.056 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005632/0.4262, allocations: 352.7 kB / 1.056 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.531e-05/0.4263, allocations: 38.5 kB / 1.056 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.953e-05/0.4263, allocations: 16.86 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.4264, allocations: 0 / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000205/0.4266, allocations: 83.41 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.4266, allocations: 0 / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0002662/0.4268, allocations: 101.6 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.511e-05/0.4269, allocations: 63.39 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.427, allocations: 113.8 kB / 1.056 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.654e-05/0.4271, allocations: 37.64 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.072e-05/0.4272, allocations: 88.14 kB / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/0.4272, allocations: 15.8 kB / 1.056 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.094e-05/0.4273, allocations: 45.69 kB / 1.057 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.4274, allocations: 322.8 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001411/0.4275, allocations: 63.95 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.4277, allocations: 88.27 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001962/0.4279, allocations: 164 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4279, allocations: 0 / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004204/0.4283, allocations: 268.8 kB / 1.057 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.499e-05/0.4284, allocations: 71.33 kB / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.4284, allocations: 4 kB / 1.057 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.4284, allocations: 0 / 1.057 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.49e-05/0.4285, allocations: 7.938 kB / 1.057 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.4285, allocations: 0 / 1.057 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/0.4288, allocations: 51.94 kB / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.4289, allocations: 16.08 kB / 1.058 GB, free: 3.051 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 0.000116/0.429, allocations: 127.2 kB / 1.058 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.5e-05/0.429, allocations: 11.89 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.791e-05/0.4291, allocations: 8.375 kB / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.4291, allocations: 4 kB / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.4291, allocations: 0 / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.4291, allocations: 0 / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001412/0.4292, allocations: 177.7 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.4292, allocations: 3.984 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.835e-06/0.4293, allocations: 4 kB / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.4293, allocations: 0 / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.4293, allocations: 11.94 kB / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.4293, allocations: 0 / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.4293, allocations: 0 / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001408/0.4294, allocations: 109.3 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.856e-05/0.4295, allocations: 85.02 kB / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.4295, allocations: 0 / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.01e-05/0.4295, allocations: 8 kB / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.262e-05/0.4296, allocations: 3.984 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-06/0.4296, allocations: 7.938 kB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.972e-05/0.4297, allocations: 91.27 kB / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4297, allocations: 0 / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000234/0.4299, allocations: 36 kB / 1.058 GB, free: 2.281 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.0001926/0.4301, allocations: 111.2 kB / 1.058 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003677/0.4305, allocations: 254.7 kB / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4305, allocations: 0 / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.047e-05/0.4305, allocations: 24 kB / 1.059 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002326/0.4308, allocations: 15.92 kB / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003715/0.4312, allocations: 174.9 kB / 1.059 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.4315, allocations: 0.6923 MB / 1.059 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.855e-05/0.4315, allocations: 4 kB / 1.059 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.993e-05/0.4315, allocations: 7.438 kB / 1.059 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/0.4315, allocations: 4 kB / 1.059 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of Templates: time 0.004794/0.4363, allocations: 1.829 MB / 1.061 GB, free: 15.12 MB / 0.8262 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 -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/jenkins/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