Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 218.8 kB / 23.03 MB, free: 4.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.398/1.398, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.078/3.078, allocations: 0.49 GB / 0.7959 GB, free: 35.55 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 60.97 kB / 1.155 GB, free: 25.41 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3418, allocations: 176.1 MB / 1.327 GB, free: 1.434 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.0029/0.3447, allocations: 1.576 MB / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0009018/0.3456, allocations: 486.8 kB / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.865e-05/0.3457, allocations: 3.938 kB / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.905e-05/0.3457, allocations: 7.938 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.374e-05/0.3457, allocations: 7.938 kB / 1.329 GB, free: 15.35 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002383/0.346, allocations: 47.88 kB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.3461, allocations: 67.78 kB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.996e-05/0.3462, allocations: 15.89 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.3464, allocations: 43.84 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.559e-05/0.3464, allocations: 31.91 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.3465, allocations: 4 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.507e-05/0.3465, allocations: 12 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.733e-05/0.3465, allocations: 23.91 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.571e-05/0.3466, allocations: 23.88 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001809/0.3468, allocations: 68.05 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.3468, allocations: 4 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3468, allocations: 0 / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.379e-06/0.3468, allocations: 0 / 1.329 GB, free: 15.02 MB / 1.029 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.0005554/0.3473, allocations: 302.1 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.3474, allocations: 8.031 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.336e-05/0.3474, allocations: 4.188 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.117e-05/0.3474, allocations: 46.67 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.3476, allocations: 20.81 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002237/0.3478, allocations: 122.5 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.3478, allocations: 4.375 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.76e-05/0.3478, allocations: 8.375 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.348, allocations: 89.56 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.348, allocations: 3.938 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.3481, allocations: 7.922 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.3481, allocations: 8 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001306/0.3482, allocations: 43.97 kB / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005154/0.3487, allocations: 275.8 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.349, allocations: 90.56 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.508e-05/0.3491, allocations: 28.84 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.172e-05/0.3491, allocations: 4 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/0.3493, allocations: 115.3 kB / 1.33 GB, free: 13.72 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.533e-06/0.3493, allocations: 0 / 1.33 GB, free: 13.72 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0004009/0.3497, allocations: 177.4 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/0.3497, allocations: 51.41 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.275e-05/0.3498, allocations: 117.8 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.3499, allocations: 33.7 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.219e-05/0.3499, allocations: 84.36 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.813e-05/0.35, allocations: 31.75 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.358e-05/0.35, allocations: 33.7 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3501, allocations: 322.8 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.057e-05/0.3502, allocations: 31.98 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.722e-05/0.3503, allocations: 41.7 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001457/0.3505, allocations: 69.64 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3505, allocations: 0 / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002178/0.3507, allocations: 117.5 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.3507, allocations: 4 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.3507, allocations: 8 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.3507, allocations: 0 / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.379e-05/0.3508, allocations: 15.92 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.3508, allocations: 4 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.599e-05/0.3509, allocations: 4 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.3509, allocations: 8 kB / 1.331 GB, free: 12.52 MB / 1.029 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.0001026/0.351, allocations: 122.3 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.11e-05/0.351, allocations: 7.953 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.047e-05/0.351, allocations: 8.75 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.3511, allocations: 8 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.3511, allocations: 0 / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3511, allocations: 0 / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001615/0.3512, allocations: 168.7 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3512, allocations: 3.938 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.579e-05/0.3513, allocations: 8 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.3513, allocations: 0 / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.3513, allocations: 7.984 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3513, allocations: 0 / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3513, allocations: 0 / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004017/0.3517, allocations: 224.9 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.323e-05/0.3517, allocations: 7.891 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.691e-05/0.3518, allocations: 8.016 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.138e-05/0.3518, allocations: 7.984 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.849e-05/0.3519, allocations: 19.95 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.3519, allocations: 7.984 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.329e-05/0.352, allocations: 87.28 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.352, allocations: 0 / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002056/0.3522, allocations: 27.92 kB / 1.332 GB, free: 11.73 MB / 1.029 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.000722/0.3529, allocations: 0.7499 MB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002346/0.3531, allocations: 99.77 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3531, allocations: 0 / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.3532, allocations: 47.92 kB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002232/0.3535, allocations: 19.97 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.3552, allocations: 1.5 MB / 1.334 GB, free: 9.207 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.978e-05/0.3553, allocations: 79.27 kB / 1.334 GB, free: 9.109 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.734e-05/0.3553, allocations: 12.75 kB / 1.334 GB, free: 9.098 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.604e-05/0.3554, allocations: 23.42 kB / 1.334 GB, free: 9.074 MB / 1.029 GB Notification: Performance of SimCode: time 3.6e-07/0.3554, allocations: 288 / 1.334 GB, free: 9.074 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02505/0.3804, allocations: 2.531 MB / 1.337 GB, free: 6.703 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.64, allocations: 9.438 kB / 1.337 GB, free: 6.695 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 18.037881022086367]