Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.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.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nor1.u1|nor1.u2|nor1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nor1.u1|nor1.u2|nor1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002131/0.002131, 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.002308/0.002308, allocations: 198.1 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.437/1.437, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.756/2.756, allocations: 461.8 MB / 0.7342 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 69.97 kB / 0.8984 GB, free: 37.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4094/0.4107, 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.Nor): time 0.002417/0.4131, allocations: 0.7117 MB / 1.053 GB, free: 8.172 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0017/0.4149, allocations: 1.225 MB / 1.054 GB, free: 6.934 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.222e-05/0.4149, allocations: 0 / 1.054 GB, free: 6.934 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.634e-05/0.415, allocations: 3.938 kB / 1.054 GB, free: 6.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.558e-05/0.4151, allocations: 15.91 kB / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005776/0.4157, allocations: 197.4 kB / 1.054 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001524/0.4158, allocations: 151.8 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.719e-05/0.4159, allocations: 7.984 kB / 1.054 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.816e-05/0.416, allocations: 63.88 kB / 1.054 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.4161, allocations: 47.88 kB / 1.054 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.48e-05/0.4162, allocations: 8 kB / 1.054 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.16e-05/0.4163, allocations: 23.92 kB / 1.055 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.048e-05/0.4163, allocations: 11.92 kB / 1.055 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.304e-05/0.4164, allocations: 47.89 kB / 1.055 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002263/0.4166, allocations: 147.6 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.4166, allocations: 8 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.82e-07/0.4166, allocations: 0 / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.4166, allocations: 0 / 1.055 GB, free: 6.219 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.0006409/0.4173, allocations: 434.9 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.4173, allocations: 12.03 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.934e-05/0.4174, allocations: 8.844 kB / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001444/0.4176, allocations: 164.4 kB / 1.055 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.4176, allocations: 4.375 kB / 1.055 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.933e-05/0.4176, allocations: 16.36 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001177/0.4177, allocations: 50.25 kB / 1.055 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.4178, allocations: 192 / 1.055 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.4178, allocations: 3.938 kB / 1.055 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.4178, allocations: 3.938 kB / 1.055 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.519e-05/0.4178, allocations: 15.98 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000532/0.4184, allocations: 352.7 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.858e-05/0.4185, allocations: 38.52 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.754e-05/0.4185, allocations: 20.94 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.325e-05/0.4186, allocations: 0 / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002226/0.4188, allocations: 83.3 kB / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.4188, allocations: 0 / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0002692/0.4191, allocations: 101.6 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.4191, allocations: 55.34 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.4192, allocations: 125.8 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.4193, allocations: 29.7 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.608e-05/0.4194, allocations: 88.14 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.4194, allocations: 23.73 kB / 1.056 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.472e-05/0.4195, allocations: 49.69 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.4196, allocations: 322.8 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.4198, allocations: 55.97 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.4199, allocations: 100.2 kB / 1.057 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001986/0.4201, allocations: 151.6 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4201, allocations: 0 / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004253/0.4206, allocations: 264.8 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.14e-05/0.4206, allocations: 71.39 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.4207, allocations: 0 / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.4207, allocations: 0 / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.461e-05/0.4207, allocations: 12.39 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.4207, allocations: 0 / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003695/0.4211, allocations: 56 kB / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.647e-05/0.4211, allocations: 19.98 kB / 1.057 GB, free: 3.234 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,nor1.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.0001095/0.4212, allocations: 125.7 kB / 1.057 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.304e-05/0.4213, allocations: 3.906 kB / 1.057 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.106e-05/0.4213, allocations: 16.36 kB / 1.057 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.4213, allocations: 0 / 1.057 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.4213, allocations: 3.984 kB / 1.057 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.4213, allocations: 0 / 1.057 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001457/0.4215, allocations: 173.7 kB / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4215, allocations: 8 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.116e-05/0.4215, allocations: 7.938 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.4215, allocations: 0 / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/0.4215, allocations: 3.984 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4215, allocations: 0 / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.4215, allocations: 0 / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001522/0.4217, allocations: 113.3 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.994e-05/0.4217, allocations: 81.02 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.565e-05/0.4218, allocations: 8 kB / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.869e-05/0.4218, allocations: 0 / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.413e-05/0.4218, allocations: 15.97 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/0.4219, allocations: 0 / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.347e-05/0.4219, allocations: 91.27 kB / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.633e-06/0.4219, allocations: 0 / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002366/0.4222, allocations: 35.94 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,nor1.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.0001814/0.4224, allocations: 107.2 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003759/0.4227, allocations: 246.7 kB / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.4228, allocations: 4 kB / 1.058 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.03e-05/0.4228, allocations: 31.97 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.0002369/0.4231, allocations: 15.98 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.0003347/0.4234, allocations: 159.9 kB / 1.059 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/0.4237, allocations: 0.6848 MB / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.396e-05/0.4237, allocations: 7.984 kB / 1.059 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.244e-05/0.4237, allocations: 23.31 kB / 1.059 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of SimCode: time 2.6e-07/0.4238, allocations: 0 / 1.059 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of Templates: time 0.00429/0.428, allocations: 1.75 MB / 1.061 GB, free: 15.39 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches