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.005142/0.005142, allocations: 102.4 kB / 15.73 MB, free: 6.031 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.001244/0.001244, allocations: 197.2 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.344 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.396/2.396, allocations: 390.2 MB / 0.6648 GB, free: 256 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 68.73 kB / 0.9504 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3088, allocations: 140.4 MB / 1.087 GB, free: 1.984 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.003926/0.3127, allocations: 1.925 MB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002031/0.3148, allocations: 1.123 MB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001736/0.315, allocations: 3.938 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004545/0.3155, allocations: 95.62 kB / 1.091 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003786/0.3159, allocations: 99.52 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005298/0.3164, allocations: 156.1 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003902/0.3168, allocations: 207.5 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001959/0.317, allocations: 53.58 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002641/0.3173, allocations: 111.5 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.3175, allocations: 99.59 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.398e-05/0.3175, allocations: 16 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001835/0.3177, allocations: 51.92 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.64e-05/0.3178, allocations: 59.81 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.318, allocations: 95.41 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004636/0.3185, allocations: 274.7 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3185, allocations: 0 / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.944e-06/0.3185, allocations: 0 / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.392e-05/0.3185, allocations: 0 / 1.092 GB, free: 13.62 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001301/0.3198, allocations: 0.5335 MB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.69e-05/0.3199, allocations: 12.03 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.076e-05/0.3199, allocations: 42.73 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.247e-05/0.32, allocations: 28.66 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004636/0.3205, allocations: 291 kB / 1.093 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.355e-05/0.3205, allocations: 8 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.511e-05/0.3206, allocations: 8 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003446/0.3209, allocations: 118.7 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.3209, allocations: 3.938 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.321, allocations: 4 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.321, allocations: 0 / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002891/0.3213, allocations: 87.92 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008486/0.3221, allocations: 456.3 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004388/0.3226, allocations: 138.5 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.3228, allocations: 56.81 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.222e-05/0.3228, allocations: 4 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003909/0.3232, allocations: 125.6 kB / 1.094 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 2.124e-06/0.3232, allocations: 0 / 1.094 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.0006894/0.3239, allocations: 245.2 kB / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.324, allocations: 59.41 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003561/0.3243, allocations: 326.5 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.002e-05/0.3244, allocations: 33.7 kB / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.3245, allocations: 140.4 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.669e-05/0.3245, allocations: 35.55 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.3247, allocations: 61.61 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.3248, allocations: 338.8 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002188/0.325, allocations: 83.94 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/0.3253, allocations: 130.6 kB / 1.095 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004191/0.3257, allocations: 192.1 kB / 1.095 GB, free: 9.859 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3257, allocations: 0 / 1.095 GB, free: 9.859 MB / 0.8575 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005972/0.3264, allocations: 281.1 kB / 1.095 GB, free: 9.578 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.3264, allocations: 7.938 kB / 1.095 GB, free: 9.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.3264, allocations: 4 kB / 1.095 GB, free: 9.566 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.3264, allocations: 0 / 1.095 GB, free: 9.566 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.3266, allocations: 39.97 kB / 1.095 GB, free: 9.527 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.3267, allocations: 7.938 kB / 1.095 GB, free: 9.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001601/0.3268, allocations: 24.05 kB / 1.095 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.619e-05/0.3269, allocations: 15.98 kB / 1.095 GB, free: 9.48 MB / 0.8575 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.0003405/0.3272, allocations: 169.3 kB / 1.096 GB, free: 9.305 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.724e-05/0.3273, allocations: 23.72 kB / 1.096 GB, free: 9.281 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.159e-05/0.3273, allocations: 26.17 kB / 1.096 GB, free: 9.258 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.3274, allocations: 4 kB / 1.096 GB, free: 9.254 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.3274, allocations: 0 / 1.096 GB, free: 9.254 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3274, allocations: 4 kB / 1.096 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00088/0.3283, allocations: 0.5479 MB / 1.096 GB, free: 8.648 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3283, allocations: 4 kB / 1.096 GB, free: 8.645 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.627e-05/0.3284, allocations: 11.98 kB / 1.096 GB, free: 8.633 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.015e-06/0.3284, allocations: 3.984 kB / 1.096 GB, free: 8.629 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/0.3284, allocations: 11.98 kB / 1.096 GB, free: 8.617 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3284, allocations: 0 / 1.096 GB, free: 8.617 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3284, allocations: 4 kB / 1.096 GB, free: 8.613 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004928/0.3289, allocations: 291.1 kB / 1.097 GB, free: 8.312 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.926e-05/0.329, allocations: 100.9 kB / 1.097 GB, free: 8.195 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.775e-05/0.3291, allocations: 3.984 kB / 1.097 GB, free: 8.191 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.3292, allocations: 15.98 kB / 1.097 GB, free: 8.176 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.3293, allocations: 15.98 kB / 1.097 GB, free: 8.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-05/0.3293, allocations: 15.92 kB / 1.097 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002194/0.3296, allocations: 210 kB / 1.097 GB, free: 7.941 MB / 0.8575 GB Notification: Performance of sort global known variables: time 4.61e-07/0.3296, allocations: 0 / 1.097 GB, free: 7.941 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003628/0.3299, allocations: 51.89 kB / 1.097 GB, free: 7.891 MB / 0.8575 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.001974/0.3319, allocations: 1.146 MB / 1.098 GB, free: 6.883 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004857/0.3324, allocations: 183.8 kB / 1.098 GB, free: 6.703 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3324, allocations: 0 / 1.098 GB, free: 6.703 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001927/0.3326, allocations: 76.22 kB / 1.098 GB, free: 6.629 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004267/0.3331, allocations: 56.77 kB / 1.098 GB, free: 6.574 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004354/0.3374, allocations: 2.567 MB / 1.101 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006447/0.3381, allocations: 0.7519 MB / 1.102 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001135/0.3382, allocations: 33.92 kB / 1.102 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.3384, allocations: 79.41 kB / 1.102 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of SimCode: time 6.41e-07/0.3384, allocations: 0 / 1.102 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02619/0.3646, allocations: 5.52 MB / 1.107 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.153/8.517, allocations: 4 kB / 1.107 GB, free: 13.57 MB / 0.8731 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) "" Variables in the reference:time,reaToInt.y,cha.u,cha.up,cha.y,cha.down,changeSampler.u,changeSampler.y,increaseSampler.u,increaseSampler.y,decreaseSampler.u,decreaseSampler.y Variables in the result:cha.down,cha.pre_u_start,cha.u,cha.up,cha.y,changeSampler.trigger,changeSampler.u,changeSampler.y,changeSampler.y_start,decreaseSampler.trigger,decreaseSampler.u,decreaseSampler.y,decreaseSampler.y_start,increaseSampler.trigger,increaseSampler.u,increaseSampler.y,increaseSampler.y_start,ramp2.duration,ramp2.height,ramp2.offset,ramp2.startTime,ramp2.y,reaToInt.u,reaToInt.y,timTabLin.extrapolation,timTabLin.offset[1],timTabLin.smoothness,timTabLin.table[1,1],timTabLin.table[1,2],timTabLin.table[2,1],timTabLin.table[2,2],timTabLin.table[3,1],timTabLin.table[3,2],timTabLin.table[4,1],timTabLin.table[4,2],timTabLin.table[5,1],timTabLin.table[5,2],timTabLin.timeScale,timTabLin.y[1],time