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.001102/0.001102, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00103/0.00103, allocations: 195 kB / 16.14 MB, free: 6.711 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.286/1.286, allocations: 222.9 MB / 239.8 MB, free: 4.531 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.343/2.343, allocations: 437 MB / 0.7099 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 59.91 kB / 0.8687 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4801/0.4814, allocations: 151.6 MB / 1.017 GB, free: 2.785 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002624/0.484, allocations: 1.627 MB / 1.018 GB, free: 1.145 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006462/0.4847, allocations: 446.9 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.923e-05/0.4848, allocations: 4 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.262e-05/0.4848, allocations: 3.938 kB / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.87e-05/0.4849, allocations: 11.92 kB / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001712/0.485, allocations: 23.97 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.292e-05/0.4851, allocations: 71.78 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.79e-05/0.4852, allocations: 4 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.268e-05/0.4853, allocations: 39.83 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.608e-05/0.4854, allocations: 27.91 kB / 1.019 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.764e-05/0.4854, allocations: 7.938 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.476e-05/0.4855, allocations: 4 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.726e-05/0.4855, allocations: 19.92 kB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.759e-05/0.4855, allocations: 19.88 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000102/0.4856, allocations: 66.08 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.4857, allocations: 0 / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of FrontEnd: time 8.11e-07/0.4857, allocations: 0 / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.326e-06/0.4857, allocations: 0 / 1.019 GB, free: 416 kB / 0.7637 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.0005282/0.4862, allocations: 373.3 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.4862, allocations: 12.03 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.459e-05/0.4863, allocations: 34.73 kB / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.375e-05/0.4863, allocations: 12.78 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.289e-05/0.4864, allocations: 172.2 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.4865, allocations: 8.375 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.963e-05/0.4865, allocations: 8.359 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001852/0.4867, allocations: 89.7 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.4867, allocations: 0 / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.4867, allocations: 4 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.4867, allocations: 0 / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001332/0.4869, allocations: 43.97 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005122/0.4874, allocations: 320.7 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002479/0.4877, allocations: 110.5 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.04e-05/0.4878, allocations: 44.83 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.4878, allocations: 0 / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002405/0.488, allocations: 111.2 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.896e-06/0.488, allocations: 96 / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0003757/0.4884, allocations: 181.4 kB / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.4885, allocations: 55.41 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.826e-05/0.4885, allocations: 109.8 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.4886, allocations: 29.7 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.916e-05/0.4886, allocations: 88.28 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.3e-05/0.4887, allocations: 35.78 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.994e-05/0.4887, allocations: 29.7 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.4888, allocations: 318.8 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.82e-05/0.4889, allocations: 31.98 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.239e-05/0.489, allocations: 46.94 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001353/0.4891, allocations: 77.52 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4892, allocations: 0 / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002181/0.4894, allocations: 117.4 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.4894, allocations: 13.88 kB / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.4894, allocations: 0 / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.498e-06/0.4894, allocations: 0 / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.784e-05/0.4895, allocations: 8 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.4895, allocations: 4 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.427e-05/0.4896, allocations: 11.89 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.4896, allocations: 8 kB / 1.021 GB, free: 13.71 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 9.008e-05/0.4897, allocations: 126.2 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.632e-05/0.4897, allocations: 8 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.712e-05/0.4898, allocations: 8.375 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.4898, allocations: 4 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.4898, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.4898, allocations: 0 / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.49, allocations: 201.4 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.49, allocations: 3.984 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.732e-05/0.49, allocations: 8 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.4901, allocations: 0 / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.4901, allocations: 7.984 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.4901, allocations: 8 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.4901, allocations: 0 / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003659/0.4905, allocations: 212.9 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.526e-05/0.4905, allocations: 85.05 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.543e-05/0.4905, allocations: 3.984 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.835e-05/0.4906, allocations: 12 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.003e-05/0.4907, allocations: 20.03 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.4907, allocations: 8 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.788e-05/0.4908, allocations: 83.27 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4908, allocations: 0 / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000208/0.491, allocations: 20 kB / 1.022 GB, free: 12.8 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.0006175/0.4916, allocations: 0.7632 MB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002193/0.4918, allocations: 91.94 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4918, allocations: 0 / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.492, allocations: 71.89 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001979/0.4922, allocations: 15.98 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/0.4937, allocations: 1.5 MB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002257/0.4939, allocations: 0.6887 MB / 1.025 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.303e-05/0.494, allocations: 8.656 kB / 1.025 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.067e-05/0.494, allocations: 19.44 kB / 1.025 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of SimCode: time 2.7e-07/0.494, allocations: 4 kB / 1.025 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1593/0.6534, allocations: 1.975 MB / 1.027 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002713/0.6537, allocations: 220.6 kB / 1.027 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.669/2.322, allocations: 0 / 1.027 GB, free: 7.391 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