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.001757/0.001757, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002737/0.002737, allocations: 193.5 kB / 16.14 MB, free: 6.711 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.453/1.453, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.851/2.851, allocations: 461.8 MB / 0.7342 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 66.97 kB / 0.8984 GB, free: 37.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3175, allocations: 157.4 MB / 1.052 GB, free: 8.887 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002188/0.3198, allocations: 0.7155 MB / 1.053 GB, free: 8.168 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001796/0.3216, allocations: 1.225 MB / 1.054 GB, free: 6.93 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.572e-05/0.3216, allocations: 0 / 1.054 GB, free: 6.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.673e-05/0.3217, allocations: 0 / 1.054 GB, free: 6.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.235e-05/0.3218, allocations: 15.91 kB / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006426/0.3225, allocations: 196.6 kB / 1.054 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001689/0.3226, allocations: 143.8 kB / 1.054 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.3228, allocations: 15.98 kB / 1.054 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.3229, allocations: 67.81 kB / 1.054 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.323, allocations: 47.88 kB / 1.054 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.487e-05/0.3231, allocations: 8 kB / 1.054 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.778e-05/0.3232, allocations: 23.98 kB / 1.054 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.811e-05/0.3232, allocations: 3.938 kB / 1.055 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.676e-05/0.3233, allocations: 55.81 kB / 1.055 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.3236, allocations: 147.6 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3236, allocations: 0 / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3236, allocations: 4 kB / 1.055 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.3236, allocations: 0 / 1.055 GB, free: 6.223 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.0006226/0.3242, allocations: 436.1 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.3243, allocations: 12.03 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.087e-05/0.3243, allocations: 12.84 kB / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.3245, allocations: 168.3 kB / 1.055 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.3245, allocations: 8.359 kB / 1.055 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.401e-05/0.3246, allocations: 12.38 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001305/0.3247, allocations: 46.25 kB / 1.055 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.3247, allocations: 4.188 kB / 1.055 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.3247, allocations: 3.938 kB / 1.055 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.3248, allocations: 0 / 1.055 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.569e-05/0.3248, allocations: 15.98 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00055/0.3254, allocations: 352.7 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.087e-05/0.3254, allocations: 38.45 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.469e-05/0.3255, allocations: 24.94 kB / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.063e-06/0.3255, allocations: 0 / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000186/0.3257, allocations: 75.38 kB / 1.056 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.3257, allocations: 0 / 1.056 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0002531/0.326, allocations: 109.5 kB / 1.056 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/0.326, allocations: 51.41 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.734e-05/0.3261, allocations: 117.8 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.359e-05/0.3262, allocations: 37.64 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.373e-05/0.3262, allocations: 92.14 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.587e-05/0.3263, allocations: 11.81 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.888e-05/0.3264, allocations: 54.05 kB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3265, allocations: 318.8 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.3267, allocations: 55.97 kB / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.3268, allocations: 108.1 kB / 1.057 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002033/0.327, allocations: 155.6 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.327, allocations: 0 / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004438/0.3275, allocations: 264.9 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.378e-05/0.3276, allocations: 71.41 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.3276, allocations: 0 / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.3276, allocations: 3.984 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.007e-05/0.3276, allocations: 4 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.3276, allocations: 0 / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003593/0.328, allocations: 47.94 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.552e-05/0.328, allocations: 20.05 kB / 1.057 GB, free: 3.242 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.0001092/0.3281, allocations: 139.2 kB / 1.057 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.403e-05/0.3282, allocations: 7.906 kB / 1.057 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.905e-05/0.3282, allocations: 12.34 kB / 1.057 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.3282, allocations: 0 / 1.057 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.3282, allocations: 0 / 1.057 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.3282, allocations: 0 / 1.057 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/0.3284, allocations: 177.6 kB / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3284, allocations: 0 / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.039e-05/0.3284, allocations: 4 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.3284, allocations: 7.984 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.3284, allocations: 0 / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3284, allocations: 96 / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3284, allocations: 3.938 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001476/0.3286, allocations: 116.9 kB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.529e-05/0.3286, allocations: 85.02 kB / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.3286, allocations: 0 / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.923e-05/0.3287, allocations: 0 / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.23e-05/0.3287, allocations: 15.98 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.108e-06/0.3287, allocations: 4 kB / 1.058 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.6e-05/0.3288, allocations: 91.2 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3288, allocations: 4 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002326/0.329, allocations: 28 kB / 1.058 GB, free: 2.465 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.0001661/0.3292, allocations: 107.2 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003516/0.3296, allocations: 246.8 kB / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3296, allocations: 4.062 kB / 1.058 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.287e-05/0.3296, allocations: 32.31 kB / 1.058 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002344/0.3299, allocations: 17.95 kB / 1.058 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003496/0.3302, allocations: 156.5 kB / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/0.3305, allocations: 0.6887 MB / 1.059 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.792e-05/0.3306, allocations: 4 kB / 1.059 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.172e-05/0.3306, allocations: 11.44 kB / 1.059 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.3306, allocations: 0 / 1.059 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of Templates: time 0.004294/0.3349, allocations: 1.754 MB / 1.061 GB, free: 15.39 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