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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 103 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.001281/0.001281, 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.387/1.387, allocations: 225.6 MB / 247.8 MB, free: 13.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.039/3.039, allocations: 497.2 MB / 0.7811 GB, free: 33.66 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 58.84 kB / 1.134 GB, free: 33.69 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.368/0.37, allocations: 173.9 MB / 1.304 GB, free: 1.555 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002869/0.3729, allocations: 1.582 MB / 1.306 GB, free: 15.95 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0007463/0.3736, allocations: 446.8 kB / 1.306 GB, free: 15.52 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.201e-05/0.3737, allocations: 4 kB / 1.306 GB, free: 15.51 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.684e-05/0.3737, allocations: 3.938 kB / 1.306 GB, free: 15.51 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.282e-05/0.3738, allocations: 15.91 kB / 1.306 GB, free: 15.49 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001819/0.3739, allocations: 23.92 kB / 1.306 GB, free: 15.47 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000112/0.3741, allocations: 71.83 kB / 1.306 GB, free: 15.4 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.3742, allocations: 8 kB / 1.306 GB, free: 15.39 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.3743, allocations: 35.84 kB / 1.306 GB, free: 15.36 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.903e-05/0.3743, allocations: 31.84 kB / 1.306 GB, free: 15.32 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.3744, allocations: 8 kB / 1.306 GB, free: 15.32 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 1.311e-05/0.3744, allocations: 4 kB / 1.306 GB, free: 15.31 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.967e-05/0.3744, allocations: 23.97 kB / 1.306 GB, free: 15.29 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.955e-05/0.3745, allocations: 27.86 kB / 1.306 GB, free: 15.26 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.3746, allocations: 71.98 kB / 1.306 GB, free: 15.19 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3746, allocations: 0 / 1.306 GB, free: 15.19 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3746, allocations: 0 / 1.306 GB, free: 15.19 MB / 1.014 GB Notification: Performance of Transformations before backend: time 8.957e-06/0.3746, allocations: 0 / 1.306 GB, free: 15.19 MB / 1.014 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.0006046/0.3752, allocations: 371.2 kB / 1.307 GB, free: 14.78 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.3752, allocations: 12.62 kB / 1.307 GB, free: 14.77 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.116e-05/0.3753, allocations: 38.69 kB / 1.307 GB, free: 14.72 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.039e-05/0.3753, allocations: 12.92 kB / 1.307 GB, free: 14.71 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.3754, allocations: 172.3 kB / 1.307 GB, free: 14.5 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.3755, allocations: 8.312 kB / 1.307 GB, free: 14.5 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.019e-05/0.3755, allocations: 8.375 kB / 1.307 GB, free: 14.49 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001979/0.3757, allocations: 85.75 kB / 1.307 GB, free: 14.4 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.3757, allocations: 0 / 1.307 GB, free: 14.4 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.3757, allocations: 0 / 1.307 GB, free: 14.4 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.3757, allocations: 4 kB / 1.307 GB, free: 14.39 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.3758, allocations: 39.97 kB / 1.307 GB, free: 14.36 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005526/0.3764, allocations: 328.7 kB / 1.307 GB, free: 13.98 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002667/0.3767, allocations: 78.55 kB / 1.307 GB, free: 13.9 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.142e-05/0.3768, allocations: 40.83 kB / 1.307 GB, free: 13.86 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.3768, allocations: 0 / 1.307 GB, free: 13.86 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002707/0.377, allocations: 127.4 kB / 1.308 GB, free: 13.72 MB / 1.014 GB Notification: Performance of pre-optimization done (n=11): time 6.162e-06/0.377, allocations: 3.984 kB / 1.308 GB, free: 13.71 MB / 1.014 GB Notification: Performance of matching and sorting (n=11): time 0.0003815/0.3774, allocations: 165.6 kB / 1.308 GB, free: 13.55 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.3775, allocations: 55.41 kB / 1.308 GB, free: 13.48 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.17e-05/0.3776, allocations: 109.8 kB / 1.308 GB, free: 13.36 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.3776, allocations: 33.7 kB / 1.308 GB, free: 13.32 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 5.849e-05/0.3776, allocations: 84.38 kB / 1.308 GB, free: 13.24 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.629e-05/0.3777, allocations: 31.73 kB / 1.308 GB, free: 13.21 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.752e-05/0.3777, allocations: 25.72 kB / 1.308 GB, free: 13.18 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3779, allocations: 330.7 kB / 1.308 GB, free: 12.84 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.022e-05/0.378, allocations: 27.98 kB / 1.308 GB, free: 12.82 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.3781, allocations: 61.38 kB / 1.308 GB, free: 12.75 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/0.3782, allocations: 66.08 kB / 1.308 GB, free: 12.68 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3782, allocations: 0 / 1.308 GB, free: 12.68 MB / 1.014 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002065/0.3784, allocations: 109.6 kB / 1.309 GB, free: 12.57 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.3784, allocations: 4 kB / 1.309 GB, free: 12.57 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.3784, allocations: 3.984 kB / 1.309 GB, free: 12.56 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.3784, allocations: 4 kB / 1.309 GB, free: 12.56 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.047e-05/0.3785, allocations: 8 kB / 1.309 GB, free: 12.55 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3785, allocations: 4 kB / 1.309 GB, free: 12.55 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.547e-05/0.3786, allocations: 19.88 kB / 1.309 GB, free: 12.53 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.3786, allocations: 4 kB / 1.309 GB, free: 12.52 MB / 1.014 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 9.466e-05/0.3787, allocations: 131.5 kB / 1.309 GB, free: 12.39 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.66e-05/0.3787, allocations: 7.984 kB / 1.309 GB, free: 12.38 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.258e-05/0.3788, allocations: 16.38 kB / 1.309 GB, free: 12.36 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.3788, allocations: 0 / 1.309 GB, free: 12.36 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.3788, allocations: 4 kB / 1.309 GB, free: 12.36 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3788, allocations: 0 / 1.309 GB, free: 12.36 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.3789, allocations: 205.4 kB / 1.309 GB, free: 12.11 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.3789, allocations: 4 kB / 1.309 GB, free: 12.1 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.178e-05/0.379, allocations: 7.984 kB / 1.309 GB, free: 12.09 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.379, allocations: 4 kB / 1.309 GB, free: 12.09 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.379, allocations: 0 / 1.309 GB, free: 12.09 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.379, allocations: 0 / 1.309 GB, free: 12.09 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.379, allocations: 0 / 1.309 GB, free: 12.09 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003873/0.3794, allocations: 228.8 kB / 1.309 GB, free: 11.85 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 4.487e-05/0.3795, allocations: 77.11 kB / 1.309 GB, free: 11.75 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/0.3795, allocations: 8.031 kB / 1.309 GB, free: 11.75 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.098e-05/0.3796, allocations: 11.98 kB / 1.309 GB, free: 11.73 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.399e-05/0.3796, allocations: 15.97 kB / 1.309 GB, free: 11.72 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.3796, allocations: 4 kB / 1.309 GB, free: 11.71 MB / 1.014 GB Notification: Performance of sorting global known variables: time 5.283e-05/0.3797, allocations: 91.58 kB / 1.309 GB, free: 11.62 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.3797, allocations: 0 / 1.309 GB, free: 11.62 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002037/0.3799, allocations: 28.02 kB / 1.309 GB, free: 11.6 MB / 1.014 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.000697/0.3806, allocations: 0.749 MB / 1.31 GB, free: 10.82 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002179/0.3808, allocations: 83.89 kB / 1.31 GB, free: 10.74 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3808, allocations: 8.062 kB / 1.31 GB, free: 10.73 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.3809, allocations: 40.53 kB / 1.31 GB, free: 10.69 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001912/0.3811, allocations: 18.27 kB / 1.31 GB, free: 10.68 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001663/0.3828, allocations: 1.518 MB / 1.312 GB, free: 9.07 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.3831, allocations: 0.6846 MB / 1.312 GB, free: 8.359 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.54e-05/0.3831, allocations: 12.66 kB / 1.312 GB, free: 8.348 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.18e-05/0.3832, allocations: 23.42 kB / 1.312 GB, free: 8.324 MB / 1.014 GB Notification: Performance of SimCode: time 2.81e-07/0.3832, allocations: 0 / 1.312 GB, free: 8.324 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0245/0.4077, allocations: 2.273 MB / 1.315 GB, free: 6.191 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.603/9.01, allocations: 11.7 kB / 1.315 GB, free: 6.184 MB / 1.014 GB " [Timeout remaining time 291] (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 --stepSize=1.44 --timeout=800 --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) [Timeout 840.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_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.474893965758383]