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 12.0.0-master/package.mo", uses=false) 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: 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.001472/0.001472, allocations: 108 kB / 15.6 MB, free: 132 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.001755/0.001755, allocations: 195.8 kB / 16.53 MB, free: 6.391 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.455/1.455, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.971/2.971, allocations: 472.6 MB / 0.7451 GB, free: 4.586 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 64.47 kB / 0.9121 GB, free: 33.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.424/0.4255, allocations: 159.9 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.003209/0.4288, allocations: 0.6561 MB / 1.069 GB, free: 9.715 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002313/0.4311, allocations: 1.188 MB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.691e-05/0.4312, allocations: 0 / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.51e-05/0.4313, allocations: 3.938 kB / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001094/0.4315, allocations: 19.91 kB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009657/0.4324, allocations: 204.6 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003014/0.4328, allocations: 187.6 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.4329, allocations: 4 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001495/0.4331, allocations: 71.88 kB / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001944/0.4333, allocations: 51.88 kB / 1.071 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.298e-05/0.4334, allocations: 16 kB / 1.071 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.4335, allocations: 27.98 kB / 1.071 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.161e-05/0.4335, allocations: 15.92 kB / 1.071 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.52e-05/0.4336, allocations: 51.89 kB / 1.071 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000266/0.4339, allocations: 155.6 kB / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.4339, allocations: 0 / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.866e-06/0.4339, allocations: 3.938 kB / 1.071 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.4339, allocations: 0 / 1.071 GB, free: 7.723 MB / 0.8262 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.0006455/0.4346, allocations: 447 kB / 1.071 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.4346, allocations: 8.031 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.205e-05/0.4347, allocations: 12.84 kB / 1.071 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001532/0.4349, allocations: 168.3 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.4349, allocations: 4.375 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.673e-05/0.4349, allocations: 12.38 kB / 1.071 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001471/0.4351, allocations: 46.23 kB / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.4351, allocations: 192 / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.4351, allocations: 11.92 kB / 1.071 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.4351, allocations: 0 / 1.071 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.587e-05/0.4352, allocations: 12 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005767/0.4358, allocations: 360.6 kB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.869e-05/0.4359, allocations: 38.5 kB / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.058e-05/0.4359, allocations: 12.86 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.4359, allocations: 0 / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001808/0.4361, allocations: 91.39 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.4361, allocations: 0 / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0002751/0.4364, allocations: 101.6 kB / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.4365, allocations: 55.41 kB / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.4366, allocations: 113.8 kB / 1.072 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.4366, allocations: 33.7 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.84e-05/0.4367, allocations: 96.03 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.4367, allocations: 7.906 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.106e-05/0.4368, allocations: 49.69 kB / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.4369, allocations: 326.8 kB / 1.073 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.4371, allocations: 55.97 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/0.4372, allocations: 100.1 kB / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001968/0.4374, allocations: 163.7 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4374, allocations: 3.938 kB / 1.073 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004168/0.4379, allocations: 260.8 kB / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.547e-05/0.4379, allocations: 67.39 kB / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.438, allocations: 64 / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.438, allocations: 8.125 kB / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.498e-05/0.438, allocations: 4 kB / 1.073 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.438, allocations: 4 kB / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003734/0.4384, allocations: 59.83 kB / 1.073 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.839e-05/0.4384, allocations: 11.94 kB / 1.073 GB, free: 4.73 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.0001124/0.4386, allocations: 131.8 kB / 1.074 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.258e-05/0.4386, allocations: 8 kB / 1.074 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.328e-05/0.4386, allocations: 8.375 kB / 1.074 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.4386, allocations: 4 kB / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.4386, allocations: 0 / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.4386, allocations: 0 / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001478/0.4388, allocations: 185.5 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.4388, allocations: 0 / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.153e-06/0.4388, allocations: 0 / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-06/0.4388, allocations: 0 / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.4388, allocations: 4 kB / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.4388, allocations: 4 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.4389, allocations: 4 kB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001456/0.439, allocations: 105 kB / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.525e-05/0.4391, allocations: 85.02 kB / 1.074 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.4391, allocations: 11.92 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.826e-05/0.4391, allocations: 0 / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.609e-05/0.4392, allocations: 4 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.4392, allocations: 7.984 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.864e-05/0.4392, allocations: 91.28 kB / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4392, allocations: 0 / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002395/0.4395, allocations: 32 kB / 1.074 GB, free: 3.965 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.0002101/0.4397, allocations: 99.23 kB / 1.074 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003826/0.4401, allocations: 254.6 kB / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.4401, allocations: 0 / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.144e-05/0.4402, allocations: 31.92 kB / 1.074 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002506/0.4404, allocations: 21.89 kB / 1.074 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003985/0.4408, allocations: 159.2 kB / 1.075 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002796/0.4411, allocations: 0.6846 MB / 1.075 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.306e-05/0.4412, allocations: 15.77 kB / 1.075 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.263e-05/0.4412, allocations: 11.44 kB / 1.075 GB, free: 2.613 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.4412, allocations: 0 / 1.075 GB, free: 2.613 MB / 0.8262 GB Notification: Performance of Templates: time 0.004657/0.4459, allocations: 1.855 MB / 1.077 GB, free: 0.7852 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