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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 107.6 kB / 16.45 MB, free: 6.504 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.001267/0.001267, allocations: 191.7 kB / 19.41 MB, free: 3.68 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.389/1.389, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.748/2.748, allocations: 476.7 MB / 0.7611 GB, free: 11.31 MB / 0.6231 GB " [Timeout remaining time 177] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 71.88 kB / 1.104 GB, free: 9.258 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7867/0.7887, allocations: 168.7 MB / 1.269 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003428/0.7921, allocations: 1.582 MB / 1.27 GB, free: 3.598 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009454/0.7931, allocations: 448.6 kB / 1.271 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.364e-05/0.7931, allocations: 0 / 1.271 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.893e-05/0.7932, allocations: 3.938 kB / 1.271 GB, free: 3.152 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.659e-05/0.7932, allocations: 19.91 kB / 1.271 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002309/0.7935, allocations: 31.91 kB / 1.271 GB, free: 3.102 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001354/0.7936, allocations: 71.77 kB / 1.271 GB, free: 3.031 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.7937, allocations: 11.98 kB / 1.271 GB, free: 3.02 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.7938, allocations: 31.92 kB / 1.271 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.785e-05/0.7939, allocations: 31.89 kB / 1.271 GB, free: 2.957 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.794, allocations: 4 kB / 1.271 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.865e-05/0.794, allocations: 11.94 kB / 1.271 GB, free: 2.941 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.337e-05/0.794, allocations: 23.92 kB / 1.271 GB, free: 2.918 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.509e-05/0.7941, allocations: 19.94 kB / 1.271 GB, free: 2.898 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001463/0.7942, allocations: 69.53 kB / 1.271 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.7942, allocations: 0 / 1.271 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.563e-06/0.7942, allocations: 4 kB / 1.271 GB, free: 2.828 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.072e-06/0.7942, allocations: 0 / 1.271 GB, free: 2.828 MB / 0.9669 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.0006806/0.7949, allocations: 371.2 kB / 1.271 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.795, allocations: 8.031 kB / 1.271 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.308e-05/0.795, allocations: 46.73 kB / 1.271 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.142e-05/0.7951, allocations: 8.891 kB / 1.271 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001681/0.7952, allocations: 172.3 kB / 1.272 GB, free: 2.141 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.7953, allocations: 384 / 1.272 GB, free: 2.141 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.888e-05/0.7953, allocations: 12.36 kB / 1.272 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002183/0.7955, allocations: 89.7 kB / 1.272 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.7955, allocations: 0 / 1.272 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.7955, allocations: 0 / 1.272 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.7955, allocations: 3.938 kB / 1.272 GB, free: 2.031 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001516/0.7957, allocations: 47.97 kB / 1.272 GB, free: 1.984 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006113/0.7963, allocations: 324.6 kB / 1.272 GB, free: 1.617 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002668/0.7966, allocations: 82.53 kB / 1.272 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.748e-05/0.7967, allocations: 32.84 kB / 1.272 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.7967, allocations: 4 kB / 1.272 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002882/0.797, allocations: 119.3 kB / 1.272 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.343e-06/0.797, allocations: 96 / 1.272 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.000403/0.7974, allocations: 181.4 kB / 1.272 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.851e-05/0.7974, allocations: 55.41 kB / 1.273 GB, free: 1.109 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.913e-05/0.7975, allocations: 109.8 kB / 1.273 GB, free: 0.9922 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.304e-05/0.7975, allocations: 29.7 kB / 1.273 GB, free: 0.957 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.148e-05/0.7976, allocations: 92.36 kB / 1.273 GB, free: 0.8633 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.331e-05/0.7976, allocations: 27.75 kB / 1.273 GB, free: 0.8359 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.317e-05/0.7977, allocations: 29.7 kB / 1.273 GB, free: 0.8008 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.7978, allocations: 322.8 kB / 1.273 GB, free: 488 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.148e-05/0.7979, allocations: 27.98 kB / 1.273 GB, free: 460 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.679e-05/0.798, allocations: 49.69 kB / 1.273 GB, free: 404 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001403/0.7981, allocations: 65.64 kB / 1.273 GB, free: 332 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.7981, allocations: 0 / 1.273 GB, free: 332 kB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002134/0.7984, allocations: 121.5 kB / 1.273 GB, free: 204 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.7984, allocations: 4 kB / 1.273 GB, free: 200 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.7984, allocations: 0 / 1.273 GB, free: 200 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.7984, allocations: 0 / 1.273 GB, free: 200 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.959e-05/0.7985, allocations: 16 kB / 1.273 GB, free: 184 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.7985, allocations: 3.984 kB / 1.273 GB, free: 180 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.799e-05/0.7985, allocations: 8 kB / 1.273 GB, free: 172 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.7986, allocations: 8 kB / 1.273 GB, free: 164 kB / 0.9669 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.0001189/0.7987, allocations: 125.7 kB / 1.274 GB, free: 28 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.755e-05/0.7987, allocations: 7.953 kB / 1.274 GB, free: 20 kB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.562e-05/0.7987, allocations: 8.375 kB / 1.274 GB, free: 4 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.7987, allocations: 4 kB / 1.274 GB, free: 0 / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.7987, allocations: 4.094 kB / 1.274 GB, free: 15.99 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.7987, allocations: 0 / 1.274 GB, free: 15.99 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002313/0.799, allocations: 201.7 kB / 1.274 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.799, allocations: 0 / 1.274 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.607e-05/0.7991, allocations: 8 kB / 1.274 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.7991, allocations: 0 / 1.274 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.7991, allocations: 11.98 kB / 1.274 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.7991, allocations: 0 / 1.274 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.7991, allocations: 0 / 1.274 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004728/0.7995, allocations: 224.8 kB / 1.274 GB, free: 15.49 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.412e-05/0.7996, allocations: 89.03 kB / 1.274 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.661e-05/0.7996, allocations: 3.984 kB / 1.274 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.907e-05/0.7997, allocations: 8 kB / 1.274 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.477e-05/0.7998, allocations: 15.97 kB / 1.274 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.7998, allocations: 8 kB / 1.274 GB, free: 15.35 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.305e-05/0.7998, allocations: 87.27 kB / 1.274 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9.1e-08/0.7998, allocations: 4.062 kB / 1.274 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002027/0.8, allocations: 16 kB / 1.274 GB, free: 15.24 MB / 0.9825 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.0007461/0.8008, allocations: 0.7579 MB / 1.275 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002258/0.801, allocations: 88.06 kB / 1.275 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.801, allocations: 7.938 kB / 1.275 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.8011, allocations: 47.97 kB / 1.275 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001982/0.8013, allocations: 18.67 kB / 1.275 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/0.8031, allocations: 1.508 MB / 1.277 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004915/0.8036, allocations: 0.6923 MB / 1.277 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.847e-05/0.8036, allocations: 8.672 kB / 1.277 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.747e-05/0.8037, allocations: 27.42 kB / 1.277 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of SimCode: time 3.01e-07/0.8037, allocations: 0 / 1.277 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02613/0.8298, allocations: 2.267 MB / 1.279 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.178/10.01, allocations: 8.703 kB / 1.28 GB, free: 9.797 MB / 0.9825 GB " [Timeout remaining time 290] (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 --stepSize=1.44 --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) [Timeout 420.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_11_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.899445614777505]