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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001402/0.001402, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001679/0.001679, allocations: 192.1 kB / 16.25 MB, free: 6.621 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.279/1.279, allocations: 222.9 MB / 239.9 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.363/2.363, allocations: 437 MB / 0.7101 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 63.91 kB / 0.8689 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4856/0.4868, allocations: 151.6 MB / 1.017 GB, free: 2.688 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002143/0.489, allocations: 1.63 MB / 1.019 GB, free: 1.043 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0005228/0.4895, allocations: 450.9 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.112e-05/0.4895, allocations: 4 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.189e-05/0.4896, allocations: 7.875 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.748e-05/0.4896, allocations: 3.938 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001442/0.4898, allocations: 27.95 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.325e-05/0.4899, allocations: 71.78 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.428e-05/0.49, allocations: 12 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.38e-05/0.49, allocations: 35.84 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.248e-05/0.4901, allocations: 27.91 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.543e-05/0.4901, allocations: 8 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.3e-05/0.4901, allocations: 8 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.07e-05/0.4902, allocations: 15.92 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.029e-05/0.4902, allocations: 35.84 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.489e-05/0.4903, allocations: 62.09 kB / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.534e-06/0.4903, allocations: 4 kB / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.062e-06/0.4903, allocations: 0 / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.526e-06/0.4903, allocations: 0 / 1.019 GB, free: 288 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.000441/0.4908, allocations: 367.4 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 2.816e-05/0.4908, allocations: 8.031 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.956e-05/0.4908, allocations: 38.75 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.867e-05/0.4909, allocations: 12.83 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.093e-05/0.491, allocations: 180.2 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.491, allocations: 4.375 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.058e-05/0.491, allocations: 12.38 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001525/0.4912, allocations: 81.75 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.531e-06/0.4912, allocations: 4 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.4912, allocations: 0 / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.4912, allocations: 0 / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.4913, allocations: 47.91 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004227/0.4918, allocations: 320.7 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.492, allocations: 94.55 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.835e-05/0.4921, allocations: 48.83 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.4921, allocations: 0 / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002041/0.4923, allocations: 131.2 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.4923, allocations: 0 / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0003108/0.4926, allocations: 165.6 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.975e-05/0.4926, allocations: 55.41 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.932e-05/0.4927, allocations: 109.8 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.4927, allocations: 37.64 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.23e-05/0.4928, allocations: 88.28 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.819e-05/0.4928, allocations: 31.78 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.019e-05/0.4929, allocations: 29.72 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.474e-05/0.493, allocations: 322.8 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.826e-05/0.493, allocations: 27.98 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.323e-05/0.4931, allocations: 53.62 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001112/0.4932, allocations: 65.7 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.4932, allocations: 0 / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001796/0.4934, allocations: 113.5 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.107e-06/0.4934, allocations: 4 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.076e-06/0.4934, allocations: 0 / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.4935, allocations: 8.031 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.825e-05/0.4935, allocations: 15.98 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.4935, allocations: 0 / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.51e-05/0.4936, allocations: 15.89 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.858e-06/0.4936, allocations: 4 kB / 1.022 GB, free: 13.59 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 7.587e-05/0.4937, allocations: 128 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.48e-05/0.4937, allocations: 8 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.59e-05/0.4938, allocations: 12.36 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.4938, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.4938, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.4938, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001297/0.4939, allocations: 209.4 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.4939, allocations: 0 / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.799e-05/0.494, allocations: 11.98 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.494, allocations: 0 / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.494, allocations: 0 / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.494, allocations: 0 / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.494, allocations: 0 / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003175/0.4944, allocations: 225.4 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.997e-05/0.4944, allocations: 85.02 kB / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.125e-05/0.4944, allocations: 4.031 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.489e-05/0.4945, allocations: 7.984 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.967e-05/0.4945, allocations: 15.97 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.4945, allocations: 4 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.285e-05/0.4946, allocations: 95.56 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4946, allocations: 0 / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001759/0.4948, allocations: 20 kB / 1.022 GB, free: 12.68 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.0005265/0.4953, allocations: 0.7607 MB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001944/0.4955, allocations: 103.8 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.4955, allocations: 0 / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.4956, allocations: 67.98 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001606/0.4958, allocations: 16.16 kB / 1.023 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.4971, allocations: 1.493 MB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001986/0.4973, allocations: 0.6924 MB / 1.025 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.43e-05/0.4973, allocations: 8.672 kB / 1.026 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.221e-05/0.4974, allocations: 23.42 kB / 1.026 GB, free: 9.383 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.4974, allocations: 0 / 1.026 GB, free: 9.383 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.284/1.782, allocations: 2.061 MB / 1.028 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003526/1.782, allocations: 216.7 kB / 1.028 GB, free: 7.203 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.799/5.581, allocations: 0 / 1.028 GB, free: 7.203 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