Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.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.Integers.Validation.Change,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Change",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.001448/0.001448, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001752/0.001752, allocations: 190.9 kB / 16.25 MB, free: 6.633 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.333/1.333, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.407/2.407, allocations: 390.2 MB / 0.6644 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 67.84 kB / 0.8122 GB, free: 14.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8895/0.8912, allocations: 140.4 MB / 0.9492 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.00372/0.8949, allocations: 1.968 MB / 0.9512 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002058/0.897, allocations: 1.103 MB / 0.9522 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.8972, allocations: 1.062 kB / 0.9522 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005046/0.8977, allocations: 90.12 kB / 0.9523 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000278/0.898, allocations: 87.06 kB / 0.9524 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004752/0.8985, allocations: 131.2 kB / 0.9525 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003483/0.8989, allocations: 218.8 kB / 0.9527 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002491/0.8992, allocations: 59.56 kB / 0.9528 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.8994, allocations: 97.78 kB / 0.9529 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001432/0.8995, allocations: 102.4 kB / 0.953 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.068e-05/0.8995, allocations: 13.34 kB / 0.953 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002136/0.8998, allocations: 60.03 kB / 0.9531 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.572e-05/0.8999, allocations: 56.02 kB / 0.9531 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.775e-05/0.9, allocations: 98.45 kB / 0.9532 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003789/0.9004, allocations: 270.3 kB / 0.9535 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.9004, allocations: 0 / 0.9535 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.954e-06/0.9004, allocations: 0 / 0.9535 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.735e-06/0.9004, allocations: 1.438 kB / 0.9535 GB, free: 5.922 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001046/0.9014, allocations: 0.5398 MB / 0.954 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.9015, allocations: 9.281 kB / 0.954 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.424e-05/0.9016, allocations: 45.58 kB / 0.9541 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.797e-05/0.9016, allocations: 24.38 kB / 0.9541 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003571/0.902, allocations: 298.8 kB / 0.9544 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.902, allocations: 8.188 kB / 0.9544 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.822e-05/0.9021, allocations: 7.719 kB / 0.9544 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003465/0.9024, allocations: 115.7 kB / 0.9545 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.9024, allocations: 0 / 0.9545 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.9025, allocations: 9.312 kB / 0.9545 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.9025, allocations: 2.375 kB / 0.9545 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002898/0.9028, allocations: 90.73 kB / 0.9546 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007937/0.9036, allocations: 444.1 kB / 0.955 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003647/0.9039, allocations: 135 kB / 0.9551 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/0.9041, allocations: 56.7 kB / 0.9552 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.566e-05/0.9042, allocations: 5.328 kB / 0.9552 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003162/0.9045, allocations: 132.2 kB / 0.9553 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.893e-06/0.9045, allocations: 0 / 0.9553 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0007393/0.9052, allocations: 247.9 kB / 0.9556 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.9053, allocations: 53.75 kB / 0.9556 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003495/0.9057, allocations: 335.9 kB / 0.9559 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.9057, allocations: 27.89 kB / 0.956 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.9058, allocations: 143.8 kB / 0.9561 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.012e-05/0.9059, allocations: 41.34 kB / 0.9561 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.296e-05/0.906, allocations: 51.83 kB / 0.9562 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.175e-05/0.9061, allocations: 341.9 kB / 0.9565 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000204/0.9063, allocations: 86.19 kB / 0.9566 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002452/0.9065, allocations: 132.2 kB / 0.9567 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003968/0.9069, allocations: 189.6 kB / 0.9569 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.9069, allocations: 1.75 kB / 0.9569 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005583/0.9075, allocations: 279.1 kB / 0.9572 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.9075, allocations: 5.5 kB / 0.9572 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.9075, allocations: 1.375 kB / 0.9572 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.9076, allocations: 2.906 kB / 0.9572 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002293/0.9078, allocations: 46.16 kB / 0.9572 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.9078, allocations: 2.75 kB / 0.9572 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.908, allocations: 26.83 kB / 0.9572 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.618e-05/0.908, allocations: 14.86 kB / 0.9573 GB, free: 2.898 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 19 (decreaseSampler.y,$PRE.decreaseSampler.y,increaseSampler.y,$PRE.increaseSampler.y,changeSampler.y,$PRE.changeSampler.y,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition2,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,cha.down,cha.up,cha.y,cha.u,$PRE.cha.u,$whenCondition1,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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 0.0001653/0.9082, allocations: 158.3 kB / 0.9574 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.026e-05/0.9082, allocations: 25.28 kB / 0.9574 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.662e-05/0.9083, allocations: 34.36 kB / 0.9575 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.9083, allocations: 2.75 kB / 0.9575 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.9083, allocations: 4 kB / 0.9575 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.9083, allocations: 0 / 0.9575 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000785/0.9091, allocations: 0.5475 MB / 0.958 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.9091, allocations: 0 / 0.958 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.654e-05/0.9092, allocations: 17.98 kB / 0.958 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.9093, allocations: 1.281 kB / 0.958 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.9093, allocations: 9.328 kB / 0.958 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.9093, allocations: 0.8438 kB / 0.958 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.9093, allocations: 1.281 kB / 0.958 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004886/0.9098, allocations: 293.8 kB / 0.9583 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.319e-05/0.9099, allocations: 109.5 kB / 0.9584 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.299e-05/0.9099, allocations: 5.078 kB / 0.9584 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.9101, allocations: 15.7 kB / 0.9584 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.982e-05/0.9102, allocations: 15.8 kB / 0.9585 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/0.9102, allocations: 7.828 kB / 0.9585 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002751/0.9105, allocations: 212.5 kB / 0.9587 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9105, allocations: 0 / 0.9587 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004002/0.9109, allocations: 41.06 kB / 0.9587 GB, free: 1.754 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: 13 (cha.y,cha.up,cha.down,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,cha.u,changeSampler.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,increaseSampler.y,decreaseSampler.y) * Number of discrete states: 3 (timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,cha.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001945/0.9129, allocations: 1.146 MB / 0.9598 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005901/0.9135, allocations: 195.7 kB / 0.96 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.9135, allocations: 0 / 0.96 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002238/0.9137, allocations: 77.62 kB / 0.9601 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004534/0.9142, allocations: 62.78 kB / 0.9601 GB, free: 0.7422 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003956/0.9182, allocations: 2.609 MB / 0.9627 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004528/0.9186, allocations: 0.7546 MB / 0.9634 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001382/0.9188, allocations: 30.5 kB / 0.9635 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001486/0.9189, allocations: 73.09 kB / 0.9635 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of SimCode: time 5.61e-07/0.9189, allocations: 1.281 kB / 0.9635 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02127/0.9402, allocations: 5.172 MB / 0.9686 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003052/0.9406, allocations: 245.9 kB / 0.9688 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.045/2.986, allocations: 3.375 kB / 0.9688 GB, free: 11.16 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Change_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Change.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches