Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 110.4 kB / 16.42 MB, free: 6.508 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.001293/0.001293, allocations: 185.5 kB / 17.35 MB, free: 5.738 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.355/1.355, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.618/2.618, allocations: 469.4 MB / 0.7428 GB, free: 3.566 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 63.89 kB / 1.066 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.767/0.7684, allocations: 159.1 MB / 1.221 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003101/0.7715, allocations: 1.576 MB / 1.222 GB, free: 0.7969 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007386/0.7723, allocations: 439 kB / 1.223 GB, free: 372 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.613e-05/0.7724, allocations: 0 / 1.223 GB, free: 372 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.213e-05/0.7724, allocations: 7.922 kB / 1.223 GB, free: 364 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.583e-05/0.7725, allocations: 15.88 kB / 1.223 GB, free: 348 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002142/0.7727, allocations: 27.95 kB / 1.223 GB, free: 320 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.73e-05/0.7728, allocations: 63.84 kB / 1.223 GB, free: 256 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.7729, allocations: 15.98 kB / 1.223 GB, free: 240 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001119/0.7731, allocations: 39.84 kB / 1.223 GB, free: 200 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.265e-05/0.7731, allocations: 31.84 kB / 1.223 GB, free: 168 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.225e-05/0.7732, allocations: 8 kB / 1.223 GB, free: 160 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.485e-05/0.7732, allocations: 8 kB / 1.223 GB, free: 152 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.651e-05/0.7732, allocations: 15.98 kB / 1.223 GB, free: 136 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.44e-05/0.7733, allocations: 31.84 kB / 1.223 GB, free: 104 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.7734, allocations: 59.8 kB / 1.223 GB, free: 44 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.7734, allocations: 3.984 kB / 1.223 GB, free: 40 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.683e-06/0.7734, allocations: 0 / 1.223 GB, free: 40 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.7734, allocations: 0 / 1.223 GB, free: 40 kB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006476/0.7741, allocations: 368.9 kB / 1.224 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.7742, allocations: 16.03 kB / 1.224 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.268e-05/0.7742, allocations: 12.83 kB / 1.224 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.7743, allocations: 168.3 kB / 1.224 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.7744, allocations: 8.375 kB / 1.224 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.324e-05/0.7744, allocations: 8.375 kB / 1.224 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002038/0.7746, allocations: 81.94 kB / 1.224 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.7746, allocations: 4 kB / 1.224 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.7747, allocations: 4 kB / 1.224 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.7747, allocations: 0 / 1.224 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001403/0.7748, allocations: 47.91 kB / 1.224 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005613/0.7754, allocations: 316.7 kB / 1.224 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002584/0.7757, allocations: 102.5 kB / 1.224 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.225e-05/0.7758, allocations: 44.83 kB / 1.224 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.7758, allocations: 7.938 kB / 1.224 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002615/0.7761, allocations: 115.4 kB / 1.224 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=11): time 2.024e-06/0.7761, allocations: 0 / 1.224 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.000381/0.7765, allocations: 169.5 kB / 1.225 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/0.7765, allocations: 63.34 kB / 1.225 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.22e-05/0.7766, allocations: 113.8 kB / 1.225 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.7766, allocations: 33.7 kB / 1.225 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.193e-05/0.7767, allocations: 84.31 kB / 1.225 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.597e-05/0.7767, allocations: 39.69 kB / 1.225 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.152e-05/0.7768, allocations: 29.72 kB / 1.225 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.7769, allocations: 322.8 kB / 1.225 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.138e-05/0.777, allocations: 31.98 kB / 1.225 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.667e-05/0.7771, allocations: 49.69 kB / 1.225 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001336/0.7772, allocations: 61.7 kB / 1.225 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.7772, allocations: 0 / 1.225 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002217/0.7774, allocations: 117.5 kB / 1.225 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.7775, allocations: 7.938 kB / 1.225 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.7775, allocations: 0 / 1.225 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.7775, allocations: 7.984 kB / 1.226 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.845e-05/0.7776, allocations: 15.94 kB / 1.226 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.7776, allocations: 0 / 1.226 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.471e-05/0.7777, allocations: 11.92 kB / 1.226 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.7777, allocations: 8 kB / 1.226 GB, free: 13.39 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition4,$whenCondition3,soc.suspend,soc.discharged,$PRE.soc.discharged,soc.charged,$PRE.soc.charged,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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 9.348e-05/0.7778, allocations: 118.3 kB / 1.226 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.828e-05/0.7778, allocations: 7.906 kB / 1.226 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.119e-05/0.7779, allocations: 16.36 kB / 1.226 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.7779, allocations: 0 / 1.226 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.7779, allocations: 4 kB / 1.226 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.9e-05/0.7779, allocations: 81.02 kB / 1.226 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.551e-05/0.7779, allocations: 8 kB / 1.226 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.574e-05/0.778, allocations: 11.92 kB / 1.226 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.646e-05/0.7781, allocations: 15.97 kB / 1.226 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003615/0.7785, allocations: 228.8 kB / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004268/0.7789, allocations: 363.3 kB / 1.226 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001087/0.779, allocations: 64.05 kB / 1.226 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.882e-05/0.7791, allocations: 79.28 kB / 1.226 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of Backend: time 4.1e-07/0.7791, allocations: 4 kB / 1.226 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004418/0.7795, allocations: 138.2 kB / 1.227 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0006283/0.7802, allocations: 0.6739 MB / 1.227 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of Templates: time 0.003446/0.7836, allocations: 1.193 MB / 1.228 GB, free: 10.3 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches