Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.006585/0.006585, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001254/0.001254, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.485/1.485, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.543/2.543, allocations: 390.2 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001751, allocations: 64.09 kB / 0.9509 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3694/0.3711, allocations: 140.4 MB / 1.088 GB, free: 1.625 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002012/0.3732, allocations: 0.6651 MB / 1.089 GB, free: 0.9609 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001683/0.3749, allocations: 1.188 MB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.827e-05/0.375, allocations: 4 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.448e-05/0.375, allocations: 3.938 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.728e-05/0.3751, allocations: 7.938 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007608/0.3759, allocations: 217.7 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002928/0.3762, allocations: 187.7 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.3763, allocations: 11.94 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.3765, allocations: 71.88 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001674/0.3766, allocations: 55.86 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.501e-05/0.3767, allocations: 16 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.654e-05/0.3768, allocations: 31.97 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.615e-05/0.3768, allocations: 15.92 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.3769, allocations: 55.89 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002554/0.3772, allocations: 151.5 kB / 1.091 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.3772, allocations: 4 kB / 1.091 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3772, allocations: 0 / 1.091 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.165e-06/0.3772, allocations: 0 / 1.091 GB, free: 14.95 MB / 0.8575 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.0006667/0.3779, allocations: 428.5 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.378, allocations: 12.03 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.066e-05/0.378, allocations: 8.844 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.3782, allocations: 176.3 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/0.3782, allocations: 8.375 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.263e-05/0.3783, allocations: 8.375 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.3784, allocations: 50.23 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-06/0.3784, allocations: 192 / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.3784, allocations: 11.92 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3784, allocations: 0 / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.63e-05/0.3785, allocations: 15.98 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005145/0.379, allocations: 352.6 kB / 1.092 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 9.32e-05/0.3791, allocations: 42.5 kB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.026e-05/0.3792, allocations: 16.86 kB / 1.092 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.3792, allocations: 96 / 1.092 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001833/0.3794, allocations: 79.34 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 3.447e-06/0.3794, allocations: 0 / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0002693/0.3796, allocations: 105.5 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.3797, allocations: 59.41 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.881e-05/0.3798, allocations: 113.8 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.229e-05/0.3799, allocations: 33.69 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.726e-05/0.3799, allocations: 92.05 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.033e-05/0.38, allocations: 15.89 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.803e-05/0.3801, allocations: 49.69 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.3802, allocations: 330.7 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.3803, allocations: 55.97 kB / 1.093 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.3805, allocations: 100.2 kB / 1.093 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002075/0.3807, allocations: 160 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3807, allocations: 4 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004251/0.3812, allocations: 260.8 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.627e-05/0.3812, allocations: 69.27 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.3813, allocations: 4 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.3813, allocations: 0 / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.159e-05/0.3813, allocations: 4 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.3813, allocations: 0 / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003121/0.3816, allocations: 59.95 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.406e-05/0.3817, allocations: 12.06 kB / 1.093 GB, free: 11.96 MB / 0.8575 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.0001146/0.3818, allocations: 141.6 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.211e-05/0.3818, allocations: 0 / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.827e-05/0.3819, allocations: 8.375 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.3819, allocations: 0 / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.3819, allocations: 0 / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3819, allocations: 0 / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001457/0.382, allocations: 185.6 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.382, allocations: 0 / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.574e-06/0.3821, allocations: 0 / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.3821, allocations: 4 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.3821, allocations: 0 / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3821, allocations: 0 / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3821, allocations: 0 / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001466/0.3822, allocations: 120.9 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.405e-05/0.3823, allocations: 85.02 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.3823, allocations: 4 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.141e-05/0.3823, allocations: 3.984 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.104e-05/0.3824, allocations: 8 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.72e-06/0.3824, allocations: 0 / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.412e-05/0.3825, allocations: 95.2 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3825, allocations: 0 / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002307/0.3827, allocations: 32 kB / 1.094 GB, free: 11.19 MB / 0.8575 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.0001751/0.3829, allocations: 119.6 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003587/0.3833, allocations: 242.6 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3833, allocations: 4 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.74e-05/0.3833, allocations: 27.94 kB / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/0.3836, allocations: 15.98 kB / 1.094 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003696/0.3839, allocations: 147.6 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.3842, allocations: 0.6924 MB / 1.095 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.754e-05/0.3843, allocations: 4 kB / 1.095 GB, free: 9.863 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.051e-05/0.3843, allocations: 7.438 kB / 1.095 GB, free: 9.855 MB / 0.8575 GB Notification: Performance of SimCode: time 2.61e-07/0.3843, allocations: 4 kB / 1.095 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of Templates: time 0.004658/0.389, allocations: 1.858 MB / 1.097 GB, free: 8.02 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches