Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.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.Sources.Validation.Constant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001428, 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.001707/0.001707, allocations: 194.8 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.522/1.522, allocations: 222.9 MB / 239.9 MB, free: 4.512 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.568/2.568, allocations: 390.2 MB / 0.6644 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 59.91 kB / 0.8121 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7992/0.8006, allocations: 140.4 MB / 0.9491 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant): time 0.001892/0.8026, allocations: 0.6165 MB / 0.9497 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 4.137e-05/0.8026, allocations: 4 kB / 0.9497 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.233e-05/0.8027, allocations: 1.281 kB / 0.9497 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.899e-05/0.8027, allocations: 0 / 0.9497 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.804e-05/0.8027, allocations: 0 / 0.9497 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.078e-05/0.8028, allocations: 0 / 0.9497 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.656e-05/0.8028, allocations: 2.906 kB / 0.9497 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.735e-05/0.8029, allocations: 3.984 kB / 0.9497 GB, free: 8.629 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.425e-05/0.8029, allocations: 1.375 kB / 0.9497 GB, free: 8.629 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 1.756e-05/0.8029, allocations: 3.938 kB / 0.9497 GB, free: 8.625 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.215e-05/0.803, allocations: 5.5 kB / 0.9497 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.077e-06/0.803, allocations: 3.938 kB / 0.9497 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.344e-05/0.803, allocations: 3.984 kB / 0.9498 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.96e-05/0.803, allocations: 1.531 kB / 0.9498 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.681e-05/0.8031, allocations: 7.938 kB / 0.9498 GB, free: 8.605 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.8031, allocations: 0 / 0.9498 GB, free: 8.605 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.994e-06/0.8031, allocations: 1.312 kB / 0.9498 GB, free: 8.605 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.032e-05/0.8031, allocations: 0 / 0.9498 GB, free: 8.605 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002339/0.8033, allocations: 310.9 kB / 0.9501 GB, free: 8.254 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.8034, allocations: 9.188 kB / 0.9501 GB, free: 8.254 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.586e-05/0.8034, allocations: 4.938 kB / 0.9501 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.285e-05/0.8035, allocations: 165.7 kB / 0.9502 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.8035, allocations: 384 / 0.9502 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.8035, allocations: 5.562 kB / 0.9502 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.715e-05/0.8036, allocations: 31.45 kB / 0.9503 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.8036, allocations: 192 / 0.9503 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.8036, allocations: 5.188 kB / 0.9503 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.8037, allocations: 0 / 0.9503 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.698e-05/0.8037, allocations: 5.281 kB / 0.9503 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002434/0.8039, allocations: 383.8 kB / 0.9506 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.251e-05/0.804, allocations: 169.1 kB / 0.9508 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.004e-05/0.804, allocations: 81.55 kB / 0.9509 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.342e-05/0.804, allocations: 79.27 kB / 0.951 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.8041, allocations: 115.1 kB / 0.9511 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 9.31e-07/0.8041, allocations: 0 / 0.9511 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 6.445e-05/0.8041, allocations: 27.17 kB / 0.9511 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.8042, allocations: 130.7 kB / 0.9512 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.433e-05/0.8042, allocations: 92.73 kB / 0.9513 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.929e-06/0.8043, allocations: 25.7 kB / 0.9513 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.494e-05/0.8043, allocations: 81.86 kB / 0.9514 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.074e-06/0.8043, allocations: 4.125 kB / 0.9514 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.824e-05/0.8043, allocations: 11.12 kB / 0.9514 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.595e-05/0.8044, allocations: 314.8 kB / 0.9517 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.211e-06/0.8044, allocations: 0 / 0.9517 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.379e-06/0.8044, allocations: 1.25 kB / 0.9517 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.79e-05/0.8044, allocations: 79.28 kB / 0.9518 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/0.8044, allocations: 75.28 kB / 0.9519 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0) (initialization): time 5.167e-05/0.8045, allocations: 36.8 kB / 0.9519 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.884e-05/0.8045, allocations: 86.78 kB / 0.952 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.8045, allocations: 75.28 kB / 0.9521 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.675e-05/0.8046, allocations: 156 kB / 0.9522 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.352e-05/0.8046, allocations: 76.53 kB / 0.9523 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.413e-05/0.8046, allocations: 154.6 kB / 0.9524 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.792e-05/0.8047, allocations: 84.72 kB / 0.9525 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.8047, allocations: 84.53 kB / 0.9526 GB, free: 5.52 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 6.663e-05/0.8048, allocations: 261.8 kB / 0.9528 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.687e-05/0.8048, allocations: 114.2 kB / 0.953 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.775e-05/0.8049, allocations: 113.2 kB / 0.9531 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.99e-05/0.8049, allocations: 181.7 kB / 0.9532 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.628e-05/0.8049, allocations: 189.6 kB / 0.9534 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.439e-05/0.805, allocations: 181.5 kB / 0.9536 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001427/0.8051, allocations: 406.6 kB / 0.954 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.672e-05/0.8051, allocations: 102.3 kB / 0.9541 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.586e-05/0.8052, allocations: 106.3 kB / 0.9542 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.518e-05/0.8052, allocations: 180.3 kB / 0.9543 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/0.8052, allocations: 181.6 kB / 0.9545 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-05/0.8052, allocations: 185.6 kB / 0.9547 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.684e-05/0.8053, allocations: 177.6 kB / 0.9549 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.879e-05/0.8054, allocations: 310.8 kB / 0.9552 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.581e-05/0.8054, allocations: 187.5 kB / 0.9553 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.729e-05/0.8054, allocations: 181.6 kB / 0.9555 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.475e-05/0.8055, allocations: 106.4 kB / 0.9556 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.672e-05/0.8055, allocations: 180.2 kB / 0.9558 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.8056, allocations: 102.4 kB / 0.9559 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.35e-05/0.8056, allocations: 82.03 kB / 0.956 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8056, allocations: 4.094 kB / 0.956 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002411/0.8058, allocations: 0 / 0.956 GB, free: 1.863 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000112/0.806, allocations: 176.4 kB / 0.9561 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 4.316e-05/0.806, allocations: 1.375 kB / 0.9561 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.806, allocations: 0 / 0.9561 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.565e-06/0.806, allocations: 3.938 kB / 0.9561 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.8063, allocations: 462.4 kB / 0.9566 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001872/0.8065, allocations: 152.4 kB / 0.9567 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.663e-05/0.8066, allocations: 0.678 MB / 0.9574 GB, free: 376 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.626e-06/0.8066, allocations: 1.375 kB / 0.9574 GB, free: 376 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.861e-05/0.8066, allocations: 7.438 kB / 0.9574 GB, free: 368 kB / 0.7169 GB Notification: Performance of SimCode: time 4.11e-07/0.8067, allocations: 0 / 0.9574 GB, free: 368 kB / 0.7169 GB Notification: Performance of Templates: time 0.001919/0.8086, allocations: 165.5 kB / 0.9576 GB, free: 272 kB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Constant.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches