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: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_latest_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.001251/0.001251, allocations: 108 kB / 15.61 MB, free: 148 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.001203/0.001203, allocations: 193.8 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.219/1.219, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.487/2.487, allocations: 461.9 MB / 0.7346 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 62.95 kB / 0.8992 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2212, allocations: 157.4 MB / 1.053 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002497/0.2237, allocations: 1.562 MB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006331/0.2243, allocations: 458.8 kB / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.755e-05/0.2244, allocations: 0 / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.672e-05/0.2244, allocations: 3.938 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.822e-05/0.2245, allocations: 15.86 kB / 1.055 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001682/0.2247, allocations: 35.89 kB / 1.055 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.28e-05/0.2248, allocations: 67.78 kB / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.716e-05/0.2249, allocations: 16 kB / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.361e-05/0.2249, allocations: 31.91 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.207e-05/0.225, allocations: 27.91 kB / 1.055 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.936e-05/0.225, allocations: 11.94 kB / 1.055 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.813e-05/0.2251, allocations: 4 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.34e-05/0.2251, allocations: 19.92 kB / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.582e-05/0.2251, allocations: 27.86 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.526e-05/0.2252, allocations: 68.05 kB / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.2253, allocations: 0 / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.303e-06/0.2253, allocations: 4 kB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.987e-06/0.2253, allocations: 0 / 1.055 GB, free: 5.914 MB / 0.8106 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.00047/0.2257, allocations: 367.4 kB / 1.056 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.2258, allocations: 12.62 kB / 1.056 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.186e-05/0.2258, allocations: 42.62 kB / 1.056 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.888e-05/0.2259, allocations: 8.844 kB / 1.056 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.972e-05/0.2259, allocations: 172.3 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.887e-05/0.226, allocations: 4.375 kB / 1.056 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.379e-05/0.226, allocations: 12.38 kB / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001595/0.2262, allocations: 81.77 kB / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.2262, allocations: 0 / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.2262, allocations: 7.922 kB / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.2262, allocations: 4 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000118/0.2263, allocations: 39.97 kB / 1.056 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004547/0.2268, allocations: 324.7 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002296/0.227, allocations: 102.6 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.348e-05/0.2271, allocations: 48.83 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.089e-05/0.2271, allocations: 0 / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002153/0.2274, allocations: 111.2 kB / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.2274, allocations: 4 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0003367/0.2277, allocations: 173.8 kB / 1.057 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.2278, allocations: 55.41 kB / 1.057 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.73e-05/0.2278, allocations: 113.8 kB / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.2279, allocations: 25.7 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.391e-05/0.2279, allocations: 92.38 kB / 1.057 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.306e-05/0.2279, allocations: 27.84 kB / 1.057 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.006e-05/0.228, allocations: 25.72 kB / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.532e-05/0.2281, allocations: 326.8 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.993e-05/0.2281, allocations: 27.98 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.59e-05/0.2282, allocations: 45.7 kB / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.2284, allocations: 77.61 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2284, allocations: 0 / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001848/0.2286, allocations: 113.5 kB / 1.058 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.2286, allocations: 8 kB / 1.058 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.808e-06/0.2286, allocations: 0 / 1.058 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.2286, allocations: 0 / 1.058 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.284e-05/0.2287, allocations: 23.92 kB / 1.058 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.2287, allocations: 4 kB / 1.058 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.438e-05/0.2288, allocations: 15.83 kB / 1.058 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.305e-06/0.2288, allocations: 8 kB / 1.058 GB, free: 3.215 MB / 0.8106 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.726e-05/0.2289, allocations: 125.2 kB / 1.058 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.497e-05/0.2289, allocations: 4 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.593e-05/0.2289, allocations: 12.36 kB / 1.058 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.2289, allocations: 4 kB / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2289, allocations: 0 / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2289, allocations: 0 / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001296/0.2291, allocations: 197.5 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2291, allocations: 4 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.835e-05/0.2291, allocations: 15.92 kB / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.2292, allocations: 0 / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.2292, allocations: 4 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.2292, allocations: 0 / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2292, allocations: 0 / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003372/0.2295, allocations: 216.8 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.251e-05/0.2296, allocations: 85.2 kB / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.171e-05/0.2296, allocations: 4 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.632e-05/0.2297, allocations: 7.984 kB / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.84e-05/0.2297, allocations: 15.98 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.2297, allocations: 7.984 kB / 1.058 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.543e-05/0.2298, allocations: 87.22 kB / 1.058 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2298, allocations: 0 / 1.058 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001903/0.23, allocations: 23.98 kB / 1.058 GB, free: 2.324 MB / 0.8106 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.0005489/0.2305, allocations: 0.7568 MB / 1.059 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002/0.2307, allocations: 96.09 kB / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.2307, allocations: 0 / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.2309, allocations: 67.91 kB / 1.059 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001759/0.231, allocations: 27.92 kB / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00132/0.2324, allocations: 1.481 MB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001952/0.2326, allocations: 0.7 MB / 1.061 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.556e-05/0.2326, allocations: 8.672 kB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.955e-05/0.2327, allocations: 23.42 kB / 1.061 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2327, allocations: 0 / 1.061 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9405/1.173, allocations: 2.222 MB / 1.064 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.079/9.252, allocations: 11.19 kB / 1.064 GB, free: 12.91 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > 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