Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_latest_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.001259/0.001259, allocations: 108 kB / 15.6 MB, free: 128 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.001308/0.001308, allocations: 196 kB / 16.53 MB, free: 6.672 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.267/1.267, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.578/2.578, allocations: 469.4 MB / 0.742 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 67.61 kB / 0.9083 GB, free: 34.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2396, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.003046/0.2427, allocations: 1.933 MB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001607/0.2443, allocations: 1.115 MB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.2444, allocations: 4 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002949/0.2447, allocations: 91.56 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002444/0.245, allocations: 99.58 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003686/0.2454, allocations: 159.5 kB / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002479/0.2456, allocations: 211.4 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.2458, allocations: 45.64 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.2459, allocations: 95.69 kB / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001196/0.2461, allocations: 103.5 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.114e-05/0.2461, allocations: 15.98 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001222/0.2462, allocations: 59.97 kB / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.412e-05/0.2463, allocations: 59.77 kB / 1.068 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.686e-05/0.2464, allocations: 91.39 kB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002773/0.2467, allocations: 267.3 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2467, allocations: 3.984 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2467, allocations: 0 / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.204e-06/0.2467, allocations: 0 / 1.068 GB, free: 10.15 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0007416/0.2475, allocations: 0.5413 MB / 1.068 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.2475, allocations: 8.031 kB / 1.068 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.277e-05/0.2476, allocations: 42.73 kB / 1.068 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.393e-05/0.2476, allocations: 24.66 kB / 1.069 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.2479, allocations: 287.2 kB / 1.069 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.248, allocations: 8 kB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.159e-05/0.248, allocations: 12 kB / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002687/0.2483, allocations: 119.1 kB / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.2483, allocations: 0 / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.558e-05/0.2483, allocations: 7.938 kB / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2483, allocations: 0 / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002655/0.2486, allocations: 87.92 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006211/0.2492, allocations: 456.3 kB / 1.069 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003152/0.2495, allocations: 134.6 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/0.2497, allocations: 56.83 kB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.2497, allocations: 0 / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002561/0.25, allocations: 119.5 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.413e-06/0.25, allocations: 0 / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0006112/0.2506, allocations: 258.4 kB / 1.07 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.2507, allocations: 55.41 kB / 1.07 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002936/0.251, allocations: 326.5 kB / 1.07 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.251, allocations: 33.7 kB / 1.07 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.966e-05/0.2511, allocations: 144.3 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.329e-05/0.2511, allocations: 31.55 kB / 1.071 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.193e-05/0.2512, allocations: 65.59 kB / 1.071 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.907e-05/0.2513, allocations: 342.8 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.2515, allocations: 75.95 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.2518, allocations: 130.8 kB / 1.071 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000369/0.2521, allocations: 195.8 kB / 1.071 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2521, allocations: 0 / 1.071 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005253/0.2527, allocations: 277.1 kB / 1.072 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.2527, allocations: 7.938 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.2527, allocations: 4 kB / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.2527, allocations: 0 / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.2529, allocations: 47.97 kB / 1.072 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.2529, allocations: 7.938 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.2531, allocations: 23.83 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.328e-05/0.2531, allocations: 12.16 kB / 1.072 GB, free: 6.02 MB / 0.8262 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.0001333/0.2533, allocations: 171.4 kB / 1.072 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.633e-05/0.2533, allocations: 27.66 kB / 1.072 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.671e-05/0.2533, allocations: 22.19 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.2534, allocations: 0 / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.2534, allocations: 0 / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.2534, allocations: 3.984 kB / 1.072 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007302/0.2541, allocations: 0.5489 MB / 1.072 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.2541, allocations: 4 kB / 1.072 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.438e-05/0.2542, allocations: 11.98 kB / 1.072 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2542, allocations: 0 / 1.072 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.2542, allocations: 4 kB / 1.072 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2542, allocations: 0 / 1.072 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2542, allocations: 0 / 1.072 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004307/0.2547, allocations: 305.2 kB / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.2547, allocations: 96.86 kB / 1.073 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.344e-05/0.2548, allocations: 4 kB / 1.073 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.2549, allocations: 19.97 kB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.292e-05/0.255, allocations: 19.92 kB / 1.073 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.255, allocations: 4 kB / 1.073 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001785/0.2552, allocations: 217.9 kB / 1.073 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2552, allocations: 0 / 1.073 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002982/0.2555, allocations: 51.91 kB / 1.073 GB, free: 4.43 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: 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.001462/0.257, allocations: 1.143 MB / 1.074 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000455/0.2574, allocations: 190.9 kB / 1.074 GB, free: 3.238 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2575, allocations: 3.938 kB / 1.074 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.2576, allocations: 67.95 kB / 1.075 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003869/0.258, allocations: 64.64 kB / 1.075 GB, free: 3.109 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002868/0.2609, allocations: 2.563 MB / 1.077 GB, free: 440 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.2612, allocations: 0.7519 MB / 1.078 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.423e-05/0.2613, allocations: 33.94 kB / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.2614, allocations: 79.39 kB / 1.078 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.2614, allocations: 0 / 1.078 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01955/0.281, allocations: 5.329 MB / 1.083 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.177/7.458, allocations: 13.67 kB / 1.083 GB, free: 10.31 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches