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.001374/0.001374, allocations: 106.8 kB / 17.54 MB, free: 4.746 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.00141/0.00141, allocations: 185.9 kB / 20.71 MB, free: 1.586 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.302/1.302, allocations: 225.6 MB / 249.3 MB, free: 3.207 MB / 190.1 MB " [Timeout remaining time 179] 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.507/2.507, allocations: 476.7 MB / 0.7628 GB, free: 15.28 MB / 0.6075 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.001786/0.001786, allocations: 71.88 kB / 1.107 GB, free: 5.156 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7887/0.7904, allocations: 168.7 MB / 1.271 GB, free: 7.723 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002299/0.7927, allocations: 1.588 MB / 1.273 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0005869/0.7933, allocations: 459.4 kB / 1.273 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.771e-05/0.7934, allocations: 0.7812 kB / 1.273 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.751e-05/0.7934, allocations: 5.156 kB / 1.273 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.388e-05/0.7935, allocations: 10.78 kB / 1.273 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001707/0.7936, allocations: 37.09 kB / 1.273 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.807e-05/0.7937, allocations: 70.47 kB / 1.273 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.824e-05/0.7938, allocations: 9.172 kB / 1.274 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.536e-05/0.7939, allocations: 29.89 kB / 1.274 GB, free: 6.254 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.901e-05/0.794, allocations: 36.08 kB / 1.274 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.999e-05/0.794, allocations: 6.781 kB / 1.274 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.754e-05/0.794, allocations: 5.938 kB / 1.274 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.821e-05/0.794, allocations: 18.92 kB / 1.274 GB, free: 6.223 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.049e-05/0.7941, allocations: 23.44 kB / 1.274 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001103/0.7942, allocations: 77.97 kB / 1.274 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.7942, allocations: 0 / 1.274 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.303e-06/0.7942, allocations: 0 / 1.274 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.758e-06/0.7942, allocations: 1 kB / 1.274 GB, free: 6.176 MB / 0.9981 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.0004554/0.7947, allocations: 375.1 kB / 1.274 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.7947, allocations: 13.25 kB / 1.274 GB, free: 5.797 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.001e-05/0.7947, allocations: 38.38 kB / 1.274 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.927e-05/0.7948, allocations: 9.422 kB / 1.274 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.128e-05/0.7948, allocations: 172.9 kB / 1.274 GB, free: 5.547 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.241e-05/0.7949, allocations: 4.125 kB / 1.274 GB, free: 5.547 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.31e-05/0.7949, allocations: 11.11 kB / 1.274 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001627/0.795, allocations: 85.98 kB / 1.274 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.7951, allocations: 4 kB / 1.274 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.7951, allocations: 2.688 kB / 1.274 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.7951, allocations: 1.125 kB / 1.274 GB, free: 5.488 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.7952, allocations: 42.06 kB / 1.274 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004215/0.7956, allocations: 322.5 kB / 1.275 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.7958, allocations: 86.36 kB / 1.275 GB, free: 5.125 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.893e-05/0.7959, allocations: 40.19 kB / 1.275 GB, free: 5.105 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.7959, allocations: 0.9375 kB / 1.275 GB, free: 5.105 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002061/0.7961, allocations: 111.9 kB / 1.275 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.7961, allocations: 1.062 kB / 1.275 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0003425/0.7965, allocations: 177.9 kB / 1.275 GB, free: 4.957 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.332e-05/0.7965, allocations: 53.5 kB / 1.275 GB, free: 4.895 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.871e-05/0.7966, allocations: 108.3 kB / 1.275 GB, free: 4.793 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.224e-05/0.7966, allocations: 31.55 kB / 1.275 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.603e-05/0.7966, allocations: 87.33 kB / 1.275 GB, free: 4.672 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.607e-05/0.7966, allocations: 34.69 kB / 1.275 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-05/0.7967, allocations: 28.83 kB / 1.275 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.146e-05/0.7967, allocations: 328.1 kB / 1.276 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.132e-05/0.7968, allocations: 29.12 kB / 1.276 GB, free: 4.289 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.811e-05/0.7969, allocations: 46.02 kB / 1.276 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001244/0.797, allocations: 70.12 kB / 1.276 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.797, allocations: 0 / 1.276 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001849/0.7972, allocations: 111.6 kB / 1.276 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.7972, allocations: 9.344 kB / 1.276 GB, free: 4.16 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.7972, allocations: 0.7344 kB / 1.276 GB, free: 4.16 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.7972, allocations: 5.328 kB / 1.276 GB, free: 4.156 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.153e-05/0.7973, allocations: 16.7 kB / 1.276 GB, free: 4.152 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.7973, allocations: 0.8438 kB / 1.276 GB, free: 4.152 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.371e-05/0.7973, allocations: 12.05 kB / 1.276 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.806e-06/0.7974, allocations: 6.125 kB / 1.276 GB, free: 4.145 MB / 0.9981 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 5.583e-05/0.7974, allocations: 127.3 kB / 1.276 GB, free: 4.02 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.619e-05/0.7974, allocations: 8.141 kB / 1.276 GB, free: 4.016 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.415e-05/0.7975, allocations: 14.55 kB / 1.276 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.7975, allocations: 1.781 kB / 1.276 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.7975, allocations: 4.5 kB / 1.276 GB, free: 3.992 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.7975, allocations: 3.938 kB / 1.276 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001015/0.7976, allocations: 196.7 kB / 1.276 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.7976, allocations: 0.75 kB / 1.276 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.937e-05/0.7976, allocations: 10.53 kB / 1.276 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.7976, allocations: 0.8438 kB / 1.276 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.7976, allocations: 1.562 kB / 1.276 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.7976, allocations: 4.844 kB / 1.276 GB, free: 3.777 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.7976, allocations: 0.75 kB / 1.276 GB, free: 3.777 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003233/0.798, allocations: 216.1 kB / 1.277 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.772e-05/0.798, allocations: 88.25 kB / 1.277 GB, free: 3.555 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.167e-05/0.798, allocations: 7.281 kB / 1.277 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.844e-05/0.7981, allocations: 6.969 kB / 1.277 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.262e-05/0.7981, allocations: 24.52 kB / 1.277 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.7981, allocations: 4.531 kB / 1.277 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 2.579e-05/0.7982, allocations: 87.52 kB / 1.277 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/0.7982, allocations: 0 / 1.277 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00019/0.7983, allocations: 19.83 kB / 1.277 GB, free: 3.457 MB / 0.9981 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.0004749/0.7988, allocations: 0.7576 MB / 1.278 GB, free: 2.805 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002082/0.799, allocations: 85.47 kB / 1.278 GB, free: 2.781 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.799, allocations: 0.9375 kB / 1.278 GB, free: 2.781 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.7991, allocations: 48.33 kB / 1.278 GB, free: 2.77 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001779/0.7993, allocations: 16.97 kB / 1.278 GB, free: 2.762 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.8005, allocations: 1.515 MB / 1.279 GB, free: 1.453 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.8007, allocations: 0.6908 MB / 1.28 GB, free: 16.75 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.87e-05/0.8008, allocations: 9.078 kB / 1.28 GB, free: 16.75 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.372e-05/0.8008, allocations: 24.38 kB / 1.28 GB, free: 16.73 MB / 1.014 GB Notification: Performance of SimCode: time 3.01e-07/0.8008, allocations: 0 / 1.28 GB, free: 16.73 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0261/0.8269, allocations: 2.252 MB / 1.282 GB, free: 16.32 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.098/7.925, allocations: 15.11 kB / 1.282 GB, free: 16.32 MB / 1.014 GB " [Timeout remaining time 292] (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) [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/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] "" Variables in the reference:time,soc.Q_flow,soc.SOC Variables in the result:der(soc.SOC),hf.k,hf.u,hf.y,q.amplitude,q.f,q.offset,q.phase,q.startTime,q.y,soc.E_nominal,soc.QEff_flow,soc.Q_flow,soc.SOC,soc.SOC_start,soc.charged,soc.discharged,soc.suspend,time [Calling sys.exit(0), Time elapsed: 13.241557020999608]