Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Timer.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Timer,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Timer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Timer,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Timer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005906/0.005906, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001248/0.001248, allocations: 192.3 kB / 16.67 MB, free: 5.969 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.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.287/2.287, allocations: 390.3 MB / 0.6648 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 59.91 kB / 0.9504 GB, free: 8.102 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9296/0.931, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Timer): time 0.002291/0.9333, allocations: 0.7569 MB / 1.088 GB, free: 4.781 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001877/0.9352, allocations: 1.254 MB / 1.089 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.497e-05/0.9353, allocations: 1.062 kB / 1.089 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.714e-05/0.9354, allocations: 9.141 kB / 1.089 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.9355, allocations: 29.89 kB / 1.089 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008596/0.9364, allocations: 241.8 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000503/0.9369, allocations: 269.3 kB / 1.09 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.9371, allocations: 17.69 kB / 1.09 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002134/0.9373, allocations: 101.8 kB / 1.09 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002502/0.9375, allocations: 96.69 kB / 1.09 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.848e-05/0.9376, allocations: 23.78 kB / 1.09 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001305/0.9377, allocations: 37.36 kB / 1.09 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.697e-05/0.9378, allocations: 29.88 kB / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001767/0.938, allocations: 92.14 kB / 1.09 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004682/0.9385, allocations: 220.7 kB / 1.091 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.9385, allocations: 1.156 kB / 1.091 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.034e-06/0.9385, allocations: 0 / 1.091 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.004e-05/0.9385, allocations: 4 kB / 1.091 GB, free: 3.375 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009166/0.9394, allocations: 0.4921 MB / 1.091 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.494e-05/0.9395, allocations: 11.02 kB / 1.091 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.911e-05/0.9396, allocations: 44.56 kB / 1.091 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.388e-05/0.9397, allocations: 18.06 kB / 1.091 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006653/0.9403, allocations: 253.9 kB / 1.091 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.011e-05/0.9404, allocations: 14.89 kB / 1.091 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.75e-05/0.9405, allocations: 23 kB / 1.091 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003147/0.9408, allocations: 139.8 kB / 1.092 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.9408, allocations: 0 / 1.092 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.744e-05/0.9408, allocations: 4.156 kB / 1.092 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.9408, allocations: 2.5 kB / 1.092 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001766/0.941, allocations: 58.89 kB / 1.092 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000922/0.942, allocations: 0.516 MB / 1.092 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003121/0.9423, allocations: 162.5 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.792e-05/0.9424, allocations: 62.19 kB / 1.092 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.9424, allocations: 1.125 kB / 1.092 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000474/0.9429, allocations: 209 kB / 1.093 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=22): time 3.497e-06/0.9429, allocations: 3.984 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22): time 0.0006672/0.9436, allocations: 317.6 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.9436, allocations: 87.22 kB / 1.093 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.607e-05/0.9437, allocations: 134.1 kB / 1.093 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.289e-05/0.9438, allocations: 38.22 kB / 1.093 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.341e-05/0.9439, allocations: 96.78 kB / 1.093 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.724e-05/0.9439, allocations: 55.3 kB / 1.093 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.944, allocations: 81.92 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.199e-05/0.9441, allocations: 327.2 kB / 1.094 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/0.9443, allocations: 82.39 kB / 1.094 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.9446, allocations: 152.1 kB / 1.094 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003523/0.9449, allocations: 243.4 kB / 1.094 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.945, allocations: 4.656 kB / 1.094 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006893/0.9457, allocations: 359 kB / 1.094 GB, free: 0.4961 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.334e-05/0.9457, allocations: 64.16 kB / 1.094 GB, free: 444 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.9457, allocations: 3 kB / 1.094 GB, free: 444 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.9458, allocations: 2.594 kB / 1.094 GB, free: 444 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.9459, allocations: 26.95 kB / 1.094 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.9459, allocations: 3.625 kB / 1.095 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004145/0.9463, allocations: 70.11 kB / 1.095 GB, free: 416 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.95e-05/0.9464, allocations: 16.05 kB / 1.095 GB, free: 416 kB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 27 (thrTim.passed,$PRE.thrTim.passed,noThr.passed,$PRE.noThr.passed,$whenCondition10,$whenCondition11,booPul.y,$PRE.booPul.y,thrTim.entryTime,$PRE.thrTim.entryTime,noThr.entryTime,$PRE.noThr.entryTime,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition9,thrTim1.passed,$PRE.thrTim1.passed,$whenCondition4,$whenCondition5,booPul1.y,$PRE.booPul1.y,thrTim1.entryTime,$PRE.thrTim1.entryTime,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * 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.0001564/0.9465, allocations: 142.3 kB / 1.095 GB, free: 280 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.519e-05/0.9466, allocations: 13.73 kB / 1.095 GB, free: 276 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.567e-05/0.9466, allocations: 23.2 kB / 1.095 GB, free: 256 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.9466, allocations: 7.016 kB / 1.095 GB, free: 252 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/0.9467, allocations: 4.812 kB / 1.095 GB, free: 248 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.9467, allocations: 6.062 kB / 1.095 GB, free: 244 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007211/0.9474, allocations: 0.6148 MB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.9474, allocations: 0.6562 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.083e-05/0.9475, allocations: 13.03 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.9475, allocations: 4.875 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.9475, allocations: 13.72 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.9475, allocations: 2.234 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.9475, allocations: 0.8438 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004979/0.948, allocations: 417.5 kB / 1.096 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.612e-05/0.9481, allocations: 94.38 kB / 1.096 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.051e-05/0.9481, allocations: 9.141 kB / 1.096 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.9483, allocations: 12.58 kB / 1.096 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.943e-05/0.9484, allocations: 31.67 kB / 1.096 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-05/0.9484, allocations: 16.73 kB / 1.096 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 5.986e-05/0.9485, allocations: 92.27 kB / 1.096 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9485, allocations: 0 / 1.096 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003981/0.9489, allocations: 57.55 kB / 1.096 GB, free: 15.27 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 19 ($whenCondition4,$whenCondition5,$whenCondition1,$whenCondition2,$whenCondition3,thrTim1.passed,thrTim1.entryTime,booPul1.y,$whenCondition10,$whenCondition11,$whenCondition9,$whenCondition6,$whenCondition7,$whenCondition8,noThr.passed,noThr.entryTime,thrTim.passed,thrTim.entryTime,booPul.y) * Number of discrete states: 3 (noThr.entryTime,thrTim.entryTime,thrTim1.entryTime) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0008533/0.9497, allocations: 0.9609 MB / 1.097 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005987/0.9504, allocations: 342.5 kB / 1.097 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.9504, allocations: 7.938 kB / 1.097 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002141/0.9506, allocations: 114.8 kB / 1.097 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004224/0.951, allocations: 36.33 kB / 1.098 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002872/0.9539, allocations: 2.284 MB / 1.1 GB, free: 12.42 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.9542, allocations: 0.7088 MB / 1.1 GB, free: 11.72 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.879e-05/0.9543, allocations: 15.59 kB / 1.1 GB, free: 11.72 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.849e-05/0.9544, allocations: 40.94 kB / 1.1 GB, free: 11.69 MB / 0.8731 GB Notification: Performance of SimCode: time 5.91e-07/0.9544, allocations: 1.125 kB / 1.1 GB, free: 11.69 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02311/0.9775, allocations: 4.1 MB / 1.105 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.796/8.774, allocations: 4.406 kB / 1.105 GB, free: 11.12 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Timer.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Timer.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Timer.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Timer.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Timer_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Timer.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Timer.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Timer_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Timer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Timer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches