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 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.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.001628/0.001628, allocations: 108 kB / 15.61 MB, free: 152 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.001969/0.001969, allocations: 193.3 kB / 16.53 MB, free: 6.664 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.619/1.619, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.262/3.262, allocations: 472.7 MB / 0.7452 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 64.95 kB / 0.9121 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4431/0.4444, allocations: 159.9 MB / 1.068 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nor): time 0.002414/0.4469, allocations: 0.6411 MB / 1.069 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001734/0.4486, allocations: 1.207 MB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.455e-05/0.4487, allocations: 0 / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.378e-05/0.4488, allocations: 3.938 kB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.058e-05/0.4488, allocations: 3.938 kB / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006825/0.4495, allocations: 210.5 kB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002335/0.4498, allocations: 179.8 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.4499, allocations: 19.95 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.45, allocations: 71.83 kB / 1.071 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.4501, allocations: 51.8 kB / 1.071 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.587e-05/0.4502, allocations: 16 kB / 1.071 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.4503, allocations: 31.98 kB / 1.071 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.451e-05/0.4503, allocations: 7.938 kB / 1.071 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.991e-05/0.4504, allocations: 55.88 kB / 1.071 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000223/0.4506, allocations: 155.6 kB / 1.071 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.4506, allocations: 0 / 1.071 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.304e-06/0.4507, allocations: 0 / 1.071 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.226e-06/0.4507, allocations: 0 / 1.071 GB, free: 7.707 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.0008734/0.4515, allocations: 439 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.62e-05/0.4516, allocations: 12.03 kB / 1.071 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.163e-05/0.4517, allocations: 8.844 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001517/0.4519, allocations: 164.4 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.286e-05/0.4519, allocations: 8.312 kB / 1.071 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.417e-05/0.4519, allocations: 16.36 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001461/0.4521, allocations: 50.25 kB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.4521, allocations: 192 / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.4521, allocations: 3.938 kB / 1.071 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.4521, allocations: 0 / 1.071 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.831e-05/0.4522, allocations: 15.98 kB / 1.071 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005881/0.4528, allocations: 360.6 kB / 1.072 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001066/0.4529, allocations: 38.45 kB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.424e-05/0.4529, allocations: 20.94 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.05e-05/0.453, allocations: 0 / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000222/0.4532, allocations: 75.38 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.4532, allocations: 0 / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0002955/0.4535, allocations: 105.5 kB / 1.072 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/0.4536, allocations: 51.41 kB / 1.072 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.4537, allocations: 122.1 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.866e-05/0.4537, allocations: 33.7 kB / 1.072 GB, free: 6 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.146e-05/0.4538, allocations: 96.03 kB / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.4538, allocations: 11.94 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.503e-05/0.4539, allocations: 53.62 kB / 1.072 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000155/0.4541, allocations: 322.8 kB / 1.073 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.4542, allocations: 59.97 kB / 1.073 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/0.4544, allocations: 96.25 kB / 1.073 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002036/0.4546, allocations: 159.5 kB / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.4546, allocations: 0 / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004481/0.4551, allocations: 260.8 kB / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.533e-05/0.4552, allocations: 71.39 kB / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.4552, allocations: 0 / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.4552, allocations: 0 / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.071e-05/0.4552, allocations: 7.984 kB / 1.073 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.4553, allocations: 0 / 1.073 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003791/0.4556, allocations: 59.97 kB / 1.073 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.073e-05/0.4557, allocations: 16.36 kB / 1.073 GB, free: 4.719 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,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.0001334/0.4558, allocations: 131.9 kB / 1.074 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.831e-05/0.4558, allocations: 8 kB / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.548e-05/0.4559, allocations: 8.375 kB / 1.074 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.716e-06/0.4559, allocations: 0 / 1.074 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.4559, allocations: 3.984 kB / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.4559, allocations: 0 / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001768/0.4561, allocations: 177.5 kB / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4561, allocations: 4.094 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.137e-06/0.4561, allocations: 7.938 kB / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.4561, allocations: 0 / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.4562, allocations: 3.984 kB / 1.074 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.4562, allocations: 0 / 1.074 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4562, allocations: 0 / 1.074 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001687/0.4563, allocations: 121 kB / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.459e-05/0.4564, allocations: 85.02 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.4564, allocations: 4 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.129e-05/0.4565, allocations: 4 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.53e-05/0.4565, allocations: 7.984 kB / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.4565, allocations: 0 / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.112e-05/0.4566, allocations: 91.27 kB / 1.074 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.826e-06/0.4566, allocations: 0 / 1.074 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002457/0.4568, allocations: 35.94 kB / 1.074 GB, free: 3.945 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,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.0001993/0.457, allocations: 99.25 kB / 1.074 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003729/0.4574, allocations: 254.6 kB / 1.074 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4574, allocations: 0 / 1.074 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.038e-05/0.4575, allocations: 27.92 kB / 1.074 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.4578, allocations: 15.98 kB / 1.074 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003895/0.4582, allocations: 166.9 kB / 1.075 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.4585, allocations: 0.6885 MB / 1.075 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.98e-05/0.4585, allocations: 11.77 kB / 1.075 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.345e-05/0.4585, allocations: 11.44 kB / 1.075 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of SimCode: time 2.11e-07/0.4585, allocations: 0 / 1.075 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of Templates: time 0.005009/0.4635, allocations: 1.847 MB / 1.077 GB, free: 0.7734 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