Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_11_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.00169/0.00169, allocations: 108 kB / 15.61 MB, free: 152 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.00184/0.00184, allocations: 196.5 kB / 16.53 MB, free: 6.664 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.323/1.323, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.478/2.478, allocations: 469.8 MB / 0.7424 GB, free: 7.43 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001718, allocations: 69.02 kB / 0.9087 GB, free: 34.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2454, allocations: 159.1 MB / 1.064 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002816/0.2482, allocations: 1.574 MB / 1.066 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007053/0.2489, allocations: 444.8 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.812e-05/0.249, allocations: 0 / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.843e-05/0.249, allocations: 11.92 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.402e-05/0.2491, allocations: 7.875 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001686/0.2493, allocations: 31.95 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.2494, allocations: 75.78 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.807e-05/0.2495, allocations: 8 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.036e-05/0.2496, allocations: 35.84 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.042e-05/0.2497, allocations: 31.89 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.953e-05/0.2497, allocations: 8 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.551e-05/0.2497, allocations: 8 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.35e-05/0.2497, allocations: 11.94 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.296e-05/0.2498, allocations: 31.86 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001085/0.2499, allocations: 64.05 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2499, allocations: 4 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2499, allocations: 0 / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.2499, allocations: 0 / 1.066 GB, free: 11.89 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005474/0.2505, allocations: 381 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.2505, allocations: 8.031 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.253e-05/0.2506, allocations: 30.75 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.252e-05/0.2506, allocations: 8.922 kB / 1.067 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.2507, allocations: 168.3 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.2508, allocations: 16.31 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.2508, allocations: 4.375 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001874/0.251, allocations: 89.69 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.251, allocations: 3.938 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.251, allocations: 4 kB / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.251, allocations: 4 kB / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001259/0.2511, allocations: 43.95 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005189/0.2517, allocations: 328.6 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002485/0.2519, allocations: 102.5 kB / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.741e-05/0.252, allocations: 40.84 kB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.2521, allocations: 0 / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002407/0.2523, allocations: 123.3 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.152e-06/0.2523, allocations: 0 / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0003625/0.2527, allocations: 173.4 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.118e-05/0.2527, allocations: 59.41 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.39e-05/0.2528, allocations: 105.8 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.2529, allocations: 37.7 kB / 1.068 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.358e-05/0.2529, allocations: 80.38 kB / 1.068 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.567e-05/0.2529, allocations: 31.77 kB / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.908e-05/0.253, allocations: 29.7 kB / 1.068 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.2531, allocations: 318.8 kB / 1.068 GB, free: 9.52 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.816e-05/0.2532, allocations: 31.98 kB / 1.068 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.074e-05/0.2533, allocations: 54.12 kB / 1.069 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001282/0.2534, allocations: 65.7 kB / 1.069 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.2535, allocations: 4 kB / 1.069 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002085/0.2537, allocations: 109.5 kB / 1.069 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.2537, allocations: 7.984 kB / 1.069 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.2537, allocations: 0 / 1.069 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.2537, allocations: 0 / 1.069 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.965e-05/0.2538, allocations: 12 kB / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.2538, allocations: 0 / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.599e-05/0.2539, allocations: 19.83 kB / 1.069 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.2539, allocations: 8 kB / 1.069 GB, free: 9.195 MB / 0.8262 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.751e-05/0.254, allocations: 121.7 kB / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.875e-05/0.254, allocations: 11.89 kB / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.684e-05/0.2541, allocations: 12.38 kB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.2541, allocations: 0 / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.2541, allocations: 0 / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2541, allocations: 3.938 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001685/0.2543, allocations: 201.5 kB / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2543, allocations: 0 / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.015e-05/0.2543, allocations: 11.98 kB / 1.069 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2543, allocations: 0 / 1.069 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.2544, allocations: 8 kB / 1.069 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2544, allocations: 0 / 1.069 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.2544, allocations: 3.984 kB / 1.069 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003729/0.2548, allocations: 220.8 kB / 1.069 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.246e-05/0.2548, allocations: 81.14 kB / 1.069 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.572e-05/0.2548, allocations: 7.984 kB / 1.069 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.523e-05/0.2549, allocations: 4 kB / 1.069 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.827e-05/0.255, allocations: 15.97 kB / 1.069 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.255, allocations: 8 kB / 1.069 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.069e-05/0.255, allocations: 83.27 kB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.255, allocations: 4 kB / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001877/0.2552, allocations: 19.91 kB / 1.07 GB, free: 8.297 MB / 0.8262 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.0006614/0.2559, allocations: 0.7658 MB / 1.07 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002245/0.2561, allocations: 95.89 kB / 1.07 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2561, allocations: 0 / 1.07 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.2563, allocations: 79.91 kB / 1.07 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001784/0.2565, allocations: 13.5 kB / 1.07 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.258, allocations: 1.473 MB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.2583, allocations: 0.6961 MB / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.693e-05/0.2584, allocations: 8.766 kB / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.963e-05/0.2584, allocations: 27.42 kB / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of SimCode: time 2.71e-07/0.2585, allocations: 0 / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.775/3.033, allocations: 2.227 MB / 1.075 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/14.19, allocations: 5.109 kB / 1.075 GB, free: 2.863 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches