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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001552/0.001552, allocations: 107 kB / 16.45 MB, free: 6.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 196.6 kB / 19.41 MB, free: 3.676 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.571/2.571, allocations: 443.5 MB / 0.7287 GB, free: 13.26 MB / 0.5919 GB " [Timeout remaining time 177] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002145/0.002145, allocations: 71.89 kB / 1.056 GB, free: 5.863 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.791/0.7931, allocations: 160.7 MB / 1.213 GB, free: 3.852 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003416/0.7965, allocations: 1.581 MB / 1.214 GB, free: 2.613 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008578/0.7974, allocations: 454.8 kB / 1.215 GB, free: 2.262 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.381e-05/0.7974, allocations: 1.062 kB / 1.215 GB, free: 2.262 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.268e-05/0.7975, allocations: 3.938 kB / 1.215 GB, free: 2.258 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.933e-05/0.7975, allocations: 5.062 kB / 1.215 GB, free: 2.254 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002072/0.7977, allocations: 33.23 kB / 1.215 GB, free: 2.227 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001181/0.7979, allocations: 72.45 kB / 1.215 GB, free: 2.184 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.59e-05/0.798, allocations: 8.031 kB / 1.215 GB, free: 2.18 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.7981, allocations: 37.34 kB / 1.215 GB, free: 2.156 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.566e-05/0.7982, allocations: 32.69 kB / 1.215 GB, free: 2.133 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.066e-05/0.7982, allocations: 6.562 kB / 1.215 GB, free: 2.133 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.405e-05/0.7982, allocations: 5.5 kB / 1.215 GB, free: 2.133 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.855e-05/0.7982, allocations: 23.3 kB / 1.215 GB, free: 2.113 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.627e-05/0.7983, allocations: 27.75 kB / 1.215 GB, free: 2.094 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001271/0.7984, allocations: 68.64 kB / 1.215 GB, free: 2.043 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.7984, allocations: 0 / 1.215 GB, free: 2.043 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.343e-06/0.7984, allocations: 0 / 1.215 GB, free: 2.043 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.259e-06/0.7984, allocations: 1.062 kB / 1.215 GB, free: 2.043 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.0005896/0.799, allocations: 376.7 kB / 1.216 GB, free: 1.652 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.799, allocations: 10.16 kB / 1.216 GB, free: 1.652 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.99e-05/0.7991, allocations: 32.94 kB / 1.216 GB, free: 1.613 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.464e-05/0.7991, allocations: 8.797 kB / 1.216 GB, free: 1.609 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001523/0.7993, allocations: 183.3 kB / 1.216 GB, free: 1.395 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.7993, allocations: 2.875 kB / 1.216 GB, free: 1.395 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.948e-05/0.7993, allocations: 9.75 kB / 1.216 GB, free: 1.391 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.7995, allocations: 89.95 kB / 1.216 GB, free: 1.32 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.7995, allocations: 0 / 1.216 GB, free: 1.32 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.7995, allocations: 5.172 kB / 1.216 GB, free: 1.316 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.7995, allocations: 0.9688 kB / 1.216 GB, free: 1.316 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001262/0.7997, allocations: 43.66 kB / 1.216 GB, free: 1.297 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005901/0.8003, allocations: 316.3 kB / 1.216 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002597/0.8005, allocations: 94 kB / 1.216 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.763e-05/0.8006, allocations: 32.31 kB / 1.216 GB, free: 0.8828 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.8006, allocations: 0.875 kB / 1.216 GB, free: 0.8828 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003282/0.801, allocations: 120.8 kB / 1.216 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.894e-06/0.801, allocations: 0 / 1.216 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0004031/0.8014, allocations: 167.5 kB / 1.217 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.8014, allocations: 61.55 kB / 1.217 GB, free: 0.625 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.899e-05/0.8015, allocations: 112 kB / 1.217 GB, free: 0.5156 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.8015, allocations: 31.48 kB / 1.217 GB, free: 492 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.131e-05/0.8016, allocations: 82.59 kB / 1.217 GB, free: 408 kB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.661e-05/0.8016, allocations: 39.97 kB / 1.217 GB, free: 372 kB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.933e-05/0.8017, allocations: 29.91 kB / 1.217 GB, free: 344 kB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.8018, allocations: 321.3 kB / 1.217 GB, free: 16 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.656e-05/0.8019, allocations: 32.17 kB / 1.217 GB, free: 0 / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.802, allocations: 49.56 kB / 1.217 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001464/0.8022, allocations: 68.38 kB / 1.217 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.8022, allocations: 0.75 kB / 1.217 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002353/0.8024, allocations: 125.3 kB / 1.218 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.8024, allocations: 8.281 kB / 1.218 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.8025, allocations: 1.062 kB / 1.218 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.8025, allocations: 1.125 kB / 1.218 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.051e-05/0.8025, allocations: 13.55 kB / 1.218 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.8026, allocations: 0 / 1.218 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.239e-05/0.8026, allocations: 9.547 kB / 1.218 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.8026, allocations: 6.25 kB / 1.218 GB, free: 15.82 MB / 0.9356 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 0.0001121/0.8028, allocations: 127.1 kB / 1.218 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.065e-05/0.8028, allocations: 8.891 kB / 1.218 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.021e-05/0.8028, allocations: 9.625 kB / 1.218 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.8028, allocations: 1.438 kB / 1.218 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.8028, allocations: 3.984 kB / 1.218 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.8028, allocations: 0 / 1.218 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.803, allocations: 194.5 kB / 1.218 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.803, allocations: 0 / 1.218 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.875e-05/0.8031, allocations: 11.27 kB / 1.218 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.8031, allocations: 4.969 kB / 1.218 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2e-05/0.8031, allocations: 6.219 kB / 1.218 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.8031, allocations: 0 / 1.218 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.8031, allocations: 0.9062 kB / 1.218 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004071/0.8035, allocations: 222.3 kB / 1.218 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.81e-05/0.8036, allocations: 87.05 kB / 1.218 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.673e-05/0.8036, allocations: 2.188 kB / 1.218 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.824e-05/0.8037, allocations: 15.55 kB / 1.218 GB, free: 15.19 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.065e-05/0.8038, allocations: 10.08 kB / 1.218 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.738e-05/0.8038, allocations: 16.55 kB / 1.218 GB, free: 15.17 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.132e-05/0.8038, allocations: 89.36 kB / 1.218 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of sort global known variables: time 7e-08/0.8038, allocations: 0 / 1.218 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000215/0.8041, allocations: 14.91 kB / 1.218 GB, free: 15.09 MB / 0.9356 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.0008046/0.8049, allocations: 0.7647 MB / 1.219 GB, free: 14.41 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002448/0.8051, allocations: 81.41 kB / 1.219 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.8051, allocations: 0 / 1.219 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.8052, allocations: 52.48 kB / 1.219 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002144/0.8054, allocations: 16.11 kB / 1.219 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00189/0.8073, allocations: 1.504 MB / 1.221 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003249/0.8077, allocations: 0.6946 MB / 1.221 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.483e-05/0.8077, allocations: 8.844 kB / 1.221 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.296e-05/0.8078, allocations: 19.66 kB / 1.221 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of SimCode: time 4.51e-07/0.8078, allocations: 1.094 kB / 1.221 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03662/0.8444, allocations: 2.27 MB / 1.224 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.706/9.55, allocations: 15.59 kB / 1.224 GB, free: 11.07 MB / 0.9356 GB " [Timeout remaining time 290] (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 --stepSize=1.44 --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) [Timeout 420.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.257827284745872]