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.000932/0.0009319, allocations: 91.92 kB / 16.02 MB, free: 80 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.001153/0.001153, allocations: 179.3 kB / 16.92 MB, free: 6.652 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.43/1.43, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.788/2.788, allocations: 462.7 MB / 0.7371 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003958/0.0003959, allocations: 11.78 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.3481, allocations: 159.6 MB / 1.059 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.000947/0.3491, allocations: 393.7 kB / 1.06 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001758/0.3509, allocations: 1.205 MB / 1.061 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.276e-05/0.351, allocations: 0 / 1.061 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.893e-05/0.351, allocations: 0 / 1.061 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.528e-05/0.3511, allocations: 11.92 kB / 1.061 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006844/0.3518, allocations: 209.6 kB / 1.061 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002026/0.352, allocations: 147.7 kB / 1.061 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.376e-05/0.3521, allocations: 4 kB / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001301/0.3522, allocations: 67.81 kB / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.3524, allocations: 47.88 kB / 1.061 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.6e-05/0.3524, allocations: 8 kB / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.447e-05/0.3525, allocations: 19.97 kB / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.421e-05/0.3525, allocations: 15.94 kB / 1.061 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.3526, allocations: 73.59 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001663/0.3528, allocations: 99.75 kB / 1.062 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3528, allocations: 4 kB / 1.062 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3528, allocations: 0 / 1.062 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.3528, allocations: 0 / 1.062 GB, free: 2.637 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.0005102/0.3534, allocations: 411 kB / 1.062 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.3534, allocations: 11.97 kB / 1.062 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.098e-05/0.3535, allocations: 12.88 kB / 1.062 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.3536, allocations: 172.3 kB / 1.062 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.3537, allocations: 8.375 kB / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.061e-05/0.3537, allocations: 12.31 kB / 1.062 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001144/0.3538, allocations: 50.23 kB / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.3538, allocations: 192 / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.3539, allocations: 7.938 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.3539, allocations: 0 / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.116e-05/0.3539, allocations: 15.98 kB / 1.062 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004863/0.3544, allocations: 348.8 kB / 1.063 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.337e-05/0.3545, allocations: 42.44 kB / 1.063 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.733e-05/0.3546, allocations: 16.86 kB / 1.063 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.3546, allocations: 8.062 kB / 1.063 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001688/0.3547, allocations: 83.28 kB / 1.063 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.452e-06/0.3548, allocations: 4 kB / 1.063 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0002481/0.355, allocations: 105.6 kB / 1.063 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.3551, allocations: 51.41 kB / 1.063 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.446e-05/0.3552, allocations: 121.8 kB / 1.063 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/0.3552, allocations: 33.69 kB / 1.063 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.135e-05/0.3553, allocations: 88.14 kB / 1.063 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.3553, allocations: 15.81 kB / 1.063 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.648e-05/0.3554, allocations: 21.7 kB / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.3555, allocations: 322.8 kB / 1.063 GB, free: 492 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.3556, allocations: 67.95 kB / 1.063 GB, free: 424 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.3558, allocations: 86.27 kB / 1.064 GB, free: 324 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001981/0.356, allocations: 164 kB / 1.064 GB, free: 132 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.356, allocations: 4 kB / 1.064 GB, free: 128 kB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004428/0.3565, allocations: 264.8 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.533e-05/0.3565, allocations: 67.39 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.3565, allocations: 4 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.3566, allocations: 0 / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.408e-05/0.3566, allocations: 4 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.3566, allocations: 0 / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004168/0.357, allocations: 74.59 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.412e-05/0.3571, allocations: 15.98 kB / 1.064 GB, free: 15.68 MB / 0.8262 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.000104/0.3572, allocations: 137.6 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.666e-05/0.3572, allocations: 7.906 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.789e-05/0.3572, allocations: 12.36 kB / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.3573, allocations: 0 / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.3573, allocations: 4 kB / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3573, allocations: 0 / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.3574, allocations: 173.6 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3574, allocations: 4 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.044e-05/0.3574, allocations: 3.984 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.3575, allocations: 4 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.3575, allocations: 0 / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.3575, allocations: 4 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3575, allocations: 320 / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001456/0.3576, allocations: 112.9 kB / 1.065 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.965e-05/0.3577, allocations: 81.11 kB / 1.065 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.482e-05/0.3577, allocations: 0 / 1.065 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.064e-05/0.3577, allocations: 3.938 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.046e-05/0.3578, allocations: 15.98 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.798e-06/0.3578, allocations: 4 kB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.041e-05/0.3578, allocations: 95.2 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3579, allocations: 0 / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002399/0.3581, allocations: 32 kB / 1.065 GB, free: 14.9 MB / 0.8262 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.0001593/0.3583, allocations: 103.2 kB / 1.065 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003365/0.3586, allocations: 242.8 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3586, allocations: 4.062 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.617e-05/0.3587, allocations: 31.97 kB / 1.065 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002304/0.3589, allocations: 15.98 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003584/0.3593, allocations: 212.8 kB / 1.065 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002826/0.3596, allocations: 0.6809 MB / 1.066 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.173e-05/0.3596, allocations: 11.44 kB / 1.066 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.3596, allocations: 0 / 1.066 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of Templates: time 0.003201/0.3628, allocations: 1.368 MB / 1.067 GB, free: 12.16 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/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