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.001706/0.001706, 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.002441/0.002441, allocations: 192.4 kB / 16.25 MB, free: 6.621 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.555/1.555, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.109/3.109, allocations: 472.6 MB / 0.7448 GB, free: 4.883 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 75.45 kB / 0.9116 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.416/0.4175, allocations: 159.9 MB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002492/0.42, allocations: 0.7065 MB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001642/0.4217, allocations: 1.19 MB / 1.07 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.143e-05/0.4218, allocations: 4 kB / 1.07 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.767e-05/0.4218, allocations: 3.938 kB / 1.07 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001403/0.422, allocations: 7.922 kB / 1.07 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000811/0.4228, allocations: 209.7 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002383/0.4231, allocations: 179.8 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.4232, allocations: 11.98 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.4233, allocations: 63.89 kB / 1.07 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001198/0.4235, allocations: 51.86 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.4235, allocations: 16 kB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.197e-05/0.4236, allocations: 27.92 kB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.948e-05/0.4236, allocations: 11.94 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.644e-05/0.4237, allocations: 59.88 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002429/0.424, allocations: 151.6 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.424, allocations: 0 / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.034e-06/0.424, allocations: 0 / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.333e-06/0.424, allocations: 0 / 1.07 GB, free: 8.074 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.000644/0.4247, allocations: 431 kB / 1.071 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.4247, allocations: 12.03 kB / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.709e-05/0.4248, allocations: 12.84 kB / 1.071 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001682/0.425, allocations: 164.4 kB / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.425, allocations: 8.375 kB / 1.071 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.836e-05/0.425, allocations: 16.38 kB / 1.071 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001636/0.4252, allocations: 50.12 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.4252, allocations: 4.172 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.921e-05/0.4253, allocations: 7.922 kB / 1.071 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.4253, allocations: 0 / 1.071 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.95e-05/0.4253, allocations: 16 kB / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006079/0.4259, allocations: 356.6 kB / 1.071 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.591e-05/0.426, allocations: 42.5 kB / 1.071 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.136e-05/0.4261, allocations: 16.8 kB / 1.071 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.202e-05/0.4261, allocations: 0 / 1.071 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002125/0.4263, allocations: 83.45 kB / 1.072 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.4263, allocations: 0 / 1.072 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0002795/0.4266, allocations: 101.6 kB / 1.072 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/0.4267, allocations: 67.33 kB / 1.072 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.4268, allocations: 113.8 kB / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.395e-05/0.4268, allocations: 29.7 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.089e-05/0.4269, allocations: 100 kB / 1.072 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.643e-05/0.4269, allocations: 11.89 kB / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.56e-05/0.427, allocations: 49.69 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4272, allocations: 314.8 kB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001542/0.4273, allocations: 67.95 kB / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.4275, allocations: 100.2 kB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002011/0.4277, allocations: 156.1 kB / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4277, allocations: 0 / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004173/0.4281, allocations: 264.7 kB / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.755e-05/0.4282, allocations: 73.27 kB / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.4282, allocations: 0 / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.4283, allocations: 0 / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.562e-05/0.4283, allocations: 11.94 kB / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.4283, allocations: 0 / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003762/0.4287, allocations: 55.97 kB / 1.073 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.351e-05/0.4287, allocations: 15.98 kB / 1.073 GB, free: 5.074 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.000127/0.4289, allocations: 127.3 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.479e-05/0.4289, allocations: 4 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.124e-05/0.4289, allocations: 12.36 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.4289, allocations: 0 / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4289, allocations: 0 / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.429, allocations: 0 / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/0.4291, allocations: 189.5 kB / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.4291, allocations: 0 / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.222e-05/0.4292, allocations: 11.92 kB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.4292, allocations: 0 / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.4292, allocations: 0 / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.4292, allocations: 0 / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4292, allocations: 0 / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001617/0.4293, allocations: 109 kB / 1.073 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.712e-05/0.4294, allocations: 89.02 kB / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.4294, allocations: 0 / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.908e-05/0.4295, allocations: 0 / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.621e-05/0.4295, allocations: 7.984 kB / 1.074 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.4295, allocations: 12.06 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.313e-05/0.4296, allocations: 95.14 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4296, allocations: 4 kB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002384/0.4299, allocations: 24 kB / 1.074 GB, free: 4.309 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.0001861/0.43, allocations: 107.2 kB / 1.074 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003772/0.4304, allocations: 250.6 kB / 1.074 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.4304, allocations: 3.938 kB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.946e-05/0.4305, allocations: 24 kB / 1.074 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002422/0.4307, allocations: 15.98 kB / 1.074 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003849/0.4311, allocations: 174.9 kB / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.4315, allocations: 0.6885 MB / 1.075 GB, free: 2.969 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.284e-05/0.4315, allocations: 7.781 kB / 1.075 GB, free: 2.961 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.132e-05/0.4315, allocations: 11.44 kB / 1.075 GB, free: 2.949 MB / 0.8262 GB Notification: Performance of SimCode: time 3.5e-07/0.4315, allocations: 0 / 1.075 GB, free: 2.949 MB / 0.8262 GB Notification: Performance of Templates: time 0.004638/0.4362, allocations: 1.828 MB / 1.077 GB, free: 1.148 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