Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",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.001037/0.001037, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.006049/0.006049, allocations: 170.5 kB / 16.27 MB, free: 6.652 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.255/1.255, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.342/2.342, allocations: 437.8 MB / 0.7121 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002897/0.0002896, allocations: 12 kB / 0.873 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5164/0.5167, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001551/0.5182, allocations: 1.288 MB / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.000592/0.5188, allocations: 443.1 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.272e-05/0.5189, allocations: 0 / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.359e-05/0.5189, allocations: 3.938 kB / 1.025 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.947e-05/0.519, allocations: 11.92 kB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001676/0.5192, allocations: 23.97 kB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.303e-05/0.5193, allocations: 67.78 kB / 1.025 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.027e-05/0.5193, allocations: 11.91 kB / 1.025 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.419e-05/0.5194, allocations: 31.84 kB / 1.025 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.577e-05/0.5195, allocations: 31.91 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.5195, allocations: 0 / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.351e-05/0.5195, allocations: 4 kB / 1.025 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.455e-05/0.5196, allocations: 19.91 kB / 1.025 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.265e-05/0.5196, allocations: 49.56 kB / 1.025 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.388e-05/0.5197, allocations: 58.08 kB / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.5197, allocations: 4 kB / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.493e-06/0.5197, allocations: 0 / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.5198, allocations: 0 / 1.025 GB, free: 13.77 MB / 0.7794 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.0004724/0.5202, allocations: 359.4 kB / 1.025 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.5203, allocations: 12.03 kB / 1.025 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.697e-05/0.5203, allocations: 38.72 kB / 1.026 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.744e-05/0.5203, allocations: 8.844 kB / 1.026 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.893e-05/0.5204, allocations: 172.3 kB / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.5205, allocations: 12.36 kB / 1.026 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.238e-05/0.5205, allocations: 4.375 kB / 1.026 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001828/0.5207, allocations: 89.77 kB / 1.026 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.301e-06/0.5207, allocations: 0 / 1.026 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.5207, allocations: 7.938 kB / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.5207, allocations: 0 / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001324/0.5209, allocations: 47.97 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004878/0.5214, allocations: 328.5 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000239/0.5216, allocations: 98.55 kB / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.175e-05/0.5217, allocations: 44.84 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.5218, allocations: 0 / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002349/0.522, allocations: 119.4 kB / 1.026 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.442e-06/0.522, allocations: 0 / 1.026 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0003809/0.5224, allocations: 185.5 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.5224, allocations: 55.56 kB / 1.027 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.976e-05/0.5225, allocations: 109.8 kB / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.5225, allocations: 33.7 kB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.955e-05/0.5226, allocations: 88.36 kB / 1.027 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.125e-05/0.5226, allocations: 27.56 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.25e-05/0.5227, allocations: 21.7 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.5228, allocations: 322.8 kB / 1.027 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.219e-05/0.5229, allocations: 39.91 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.744e-05/0.523, allocations: 46.95 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.5231, allocations: 70.08 kB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.5231, allocations: 0 / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002309/0.5234, allocations: 125.4 kB / 1.027 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.5234, allocations: 8 kB / 1.027 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-06/0.5234, allocations: 0 / 1.027 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.864e-06/0.5234, allocations: 0 / 1.027 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.562e-05/0.5235, allocations: 15.98 kB / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.5235, allocations: 0 / 1.028 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.066e-05/0.5236, allocations: 8 kB / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.5236, allocations: 7.938 kB / 1.028 GB, free: 11.07 MB / 0.7794 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 8.817e-05/0.5237, allocations: 128.2 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.608e-05/0.5237, allocations: 7.906 kB / 1.028 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.983e-05/0.5238, allocations: 12.38 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.5238, allocations: 0 / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.5238, allocations: 0 / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.5238, allocations: 0 / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001502/0.5239, allocations: 205.5 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.5239, allocations: 3.984 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.504e-05/0.524, allocations: 20 kB / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.524, allocations: 0 / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.5241, allocations: 7.984 kB / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.5241, allocations: 0 / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.5241, allocations: 3.938 kB / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003728/0.5244, allocations: 228.8 kB / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.437e-05/0.5245, allocations: 85.05 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.189e-05/0.5245, allocations: 3.984 kB / 1.028 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.589e-05/0.5246, allocations: 11.98 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.19e-05/0.5246, allocations: 11.98 kB / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.5247, allocations: 8 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.016e-05/0.5247, allocations: 87.58 kB / 1.028 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5247, allocations: 0 / 1.028 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000202/0.5249, allocations: 16 kB / 1.028 GB, free: 10.15 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (soc.SOC) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,soc.charged,soc.discharged,soc.suspend) * Number of discrete states: 2 (soc.discharged,soc.charged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006231/0.5256, allocations: 0.7646 MB / 1.029 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002202/0.5258, allocations: 99.95 kB / 1.029 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.5258, allocations: 0 / 1.029 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.5259, allocations: 64.52 kB / 1.029 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001888/0.5261, allocations: 19.92 kB / 1.029 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001492/0.5276, allocations: 1.537 MB / 1.031 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002281/0.5279, allocations: 0.6926 MB / 1.031 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.99e-05/0.5279, allocations: 8.672 kB / 1.031 GB, free: 6.828 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.947e-05/0.528, allocations: 23.42 kB / 1.031 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of SimCode: time 3.41e-07/0.528, allocations: 0 / 1.031 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.335/1.863, allocations: 1.914 MB / 1.033 GB, free: 5.035 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/1.864, allocations: 213.3 kB / 1.034 GB, free: 4.781 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.766/3.63, allocations: 7.688 kB / 1.034 GB, free: 4.777 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches