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.006364/0.006364, allocations: 95.44 kB / 15.73 MB, free: 6.051 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.001784/0.001784, allocations: 199.5 kB / 16.68 MB, free: 5.973 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.272/1.272, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.468/2.468, allocations: 437.1 MB / 0.7106 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 63.91 kB / 1.018 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2363, allocations: 151.6 MB / 1.166 GB, free: 7.23 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002388/0.2387, allocations: 1.569 MB / 1.168 GB, free: 5.641 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0006492/0.2394, allocations: 447 kB / 1.168 GB, free: 5.199 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.448e-05/0.2394, allocations: 0 / 1.168 GB, free: 5.199 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.931e-05/0.2395, allocations: 7.922 kB / 1.168 GB, free: 5.191 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.558e-05/0.2395, allocations: 11.88 kB / 1.168 GB, free: 5.18 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000163/0.2397, allocations: 31.95 kB / 1.168 GB, free: 5.148 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.34e-05/0.2398, allocations: 63.84 kB / 1.168 GB, free: 5.086 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.706e-05/0.2399, allocations: 15.98 kB / 1.168 GB, free: 5.07 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.167e-05/0.24, allocations: 35.84 kB / 1.168 GB, free: 5.035 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.84e-05/0.2401, allocations: 35.84 kB / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.673e-05/0.2401, allocations: 8 kB / 1.168 GB, free: 4.992 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.491e-05/0.2401, allocations: 8 kB / 1.168 GB, free: 4.984 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.67e-05/0.2401, allocations: 19.97 kB / 1.168 GB, free: 4.965 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.334e-05/0.2402, allocations: 23.86 kB / 1.168 GB, free: 4.941 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001099/0.2403, allocations: 68 kB / 1.168 GB, free: 4.875 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2403, allocations: 3.984 kB / 1.168 GB, free: 4.871 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2403, allocations: 0 / 1.168 GB, free: 4.871 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.918e-06/0.2403, allocations: 0 / 1.168 GB, free: 4.871 MB / 0.92 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.0004987/0.2408, allocations: 375.3 kB / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/0.2409, allocations: 8.031 kB / 1.169 GB, free: 4.449 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.43e-05/0.2409, allocations: 42.73 kB / 1.169 GB, free: 4.398 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.521e-05/0.2409, allocations: 8.891 kB / 1.169 GB, free: 4.391 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.2411, allocations: 176.2 kB / 1.169 GB, free: 4.18 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.2411, allocations: 4.359 kB / 1.169 GB, free: 4.176 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.199e-05/0.2411, allocations: 12.38 kB / 1.169 GB, free: 4.164 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001638/0.2413, allocations: 81.77 kB / 1.169 GB, free: 4.078 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.2413, allocations: 0 / 1.169 GB, free: 4.078 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.2413, allocations: 0 / 1.169 GB, free: 4.078 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.2413, allocations: 4 kB / 1.169 GB, free: 4.074 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000117/0.2414, allocations: 51.84 kB / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004723/0.2419, allocations: 312.8 kB / 1.17 GB, free: 3.668 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002251/0.2422, allocations: 102.5 kB / 1.17 GB, free: 3.559 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.731e-05/0.2423, allocations: 52.88 kB / 1.17 GB, free: 3.504 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.545e-05/0.2423, allocations: 4 kB / 1.17 GB, free: 3.5 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002254/0.2425, allocations: 115.4 kB / 1.17 GB, free: 3.375 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.353e-06/0.2425, allocations: 0 / 1.17 GB, free: 3.375 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.000343/0.2429, allocations: 173.6 kB / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.2429, allocations: 59.33 kB / 1.17 GB, free: 3.129 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.055e-05/0.243, allocations: 117.8 kB / 1.17 GB, free: 3.004 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.243, allocations: 25.7 kB / 1.17 GB, free: 2.973 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.396e-05/0.2431, allocations: 88.36 kB / 1.17 GB, free: 2.883 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.146e-05/0.2431, allocations: 27.75 kB / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.78e-05/0.2432, allocations: 33.7 kB / 1.17 GB, free: 2.816 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.2433, allocations: 326.7 kB / 1.171 GB, free: 2.488 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.369e-05/0.2434, allocations: 35.98 kB / 1.171 GB, free: 2.453 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.919e-05/0.2435, allocations: 45.7 kB / 1.171 GB, free: 2.402 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001239/0.2436, allocations: 66.08 kB / 1.171 GB, free: 2.332 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2436, allocations: 0 / 1.171 GB, free: 2.332 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001932/0.2438, allocations: 113.5 kB / 1.171 GB, free: 2.215 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.2438, allocations: 4 kB / 1.171 GB, free: 2.211 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.2438, allocations: 0 / 1.171 GB, free: 2.211 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.2438, allocations: 8 kB / 1.171 GB, free: 2.203 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.785e-05/0.2439, allocations: 15.92 kB / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.2439, allocations: 0 / 1.171 GB, free: 2.188 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.855e-05/0.244, allocations: 11.94 kB / 1.171 GB, free: 2.176 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.244, allocations: 4 kB / 1.171 GB, free: 2.172 MB / 0.92 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.538e-05/0.2441, allocations: 121.8 kB / 1.171 GB, free: 2.043 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.664e-05/0.2441, allocations: 15.95 kB / 1.171 GB, free: 2.027 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.192e-05/0.2441, allocations: 12.38 kB / 1.171 GB, free: 2.016 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.2442, allocations: 0 / 1.171 GB, free: 2.016 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.2442, allocations: 0 / 1.171 GB, free: 2.016 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2442, allocations: 0 / 1.171 GB, free: 2.016 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001558/0.2443, allocations: 209.5 kB / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.2443, allocations: 0 / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.647e-05/0.2444, allocations: 11.94 kB / 1.171 GB, free: 1.75 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2444, allocations: 0 / 1.171 GB, free: 1.75 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.2444, allocations: 3.984 kB / 1.171 GB, free: 1.746 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.2444, allocations: 0 / 1.171 GB, free: 1.746 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2444, allocations: 0 / 1.171 GB, free: 1.746 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003411/0.2448, allocations: 220.9 kB / 1.171 GB, free: 1.512 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.975e-05/0.2448, allocations: 88.98 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.699e-05/0.2449, allocations: 8.031 kB / 1.172 GB, free: 1.398 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.798e-05/0.2449, allocations: 7.984 kB / 1.172 GB, free: 1.391 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.259e-05/0.245, allocations: 11.98 kB / 1.172 GB, free: 1.379 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.245, allocations: 4 kB / 1.172 GB, free: 1.375 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.651e-05/0.2451, allocations: 95.33 kB / 1.172 GB, free: 1.281 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2451, allocations: 0 / 1.172 GB, free: 1.281 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0001769/0.2452, allocations: 20 kB / 1.172 GB, free: 1.262 MB / 0.92 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.0006151/0.2459, allocations: 0.7529 MB / 1.172 GB, free: 492 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001968/0.2461, allocations: 96.28 kB / 1.173 GB, free: 396 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.2461, allocations: 0 / 1.173 GB, free: 396 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.2462, allocations: 68.12 kB / 1.173 GB, free: 328 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001635/0.2464, allocations: 12.2 kB / 1.173 GB, free: 316 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.2478, allocations: 1.501 MB / 1.174 GB, free: 14.72 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.2481, allocations: 0.6924 MB / 1.175 GB, free: 14 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.834e-05/0.2481, allocations: 8.672 kB / 1.175 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.588e-05/0.2482, allocations: 23.42 kB / 1.175 GB, free: 13.97 MB / 0.9356 GB Notification: Performance of SimCode: time 2.4e-07/0.2482, allocations: 0 / 1.175 GB, free: 13.97 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.08/2.328, allocations: 2.266 MB / 1.177 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.43/16.76, allocations: 11.02 kB / 1.177 GB, free: 11.81 MB / 0.9356 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=400 --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