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.001316/0.001316, allocations: 108 kB / 16.45 MB, free: 6.453 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.001798/0.001798, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.399/1.399, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.108/3.108, allocations: 0.49 GB / 0.7916 GB, free: 33.35 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",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.002101/0.002101, allocations: 60.56 kB / 1.149 GB, free: 26.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.324, allocations: 176.1 MB / 1.321 GB, free: 3.453 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003276/0.3273, allocations: 1.607 MB / 1.322 GB, free: 1.836 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001013/0.3283, allocations: 0.5104 MB / 1.323 GB, free: 1.32 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.214e-05/0.3284, allocations: 3.938 kB / 1.323 GB, free: 1.316 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.718e-05/0.3284, allocations: 3.938 kB / 1.323 GB, free: 1.312 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.5e-05/0.3285, allocations: 15.86 kB / 1.323 GB, free: 1.297 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.3287, allocations: 39.95 kB / 1.323 GB, free: 1.258 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001663/0.3289, allocations: 71.78 kB / 1.323 GB, free: 1.188 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.329, allocations: 15.97 kB / 1.323 GB, free: 1.172 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001578/0.3292, allocations: 31.92 kB / 1.323 GB, free: 1.141 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 9.154e-05/0.3293, allocations: 35.83 kB / 1.323 GB, free: 1.105 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.3293, allocations: 4 kB / 1.323 GB, free: 1.102 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 5.366e-05/0.3294, allocations: 12 kB / 1.323 GB, free: 1.09 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.317e-05/0.3294, allocations: 11.98 kB / 1.323 GB, free: 1.078 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.526e-05/0.3294, allocations: 35.86 kB / 1.323 GB, free: 1.043 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000165/0.3296, allocations: 71.98 kB / 1.323 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3296, allocations: 0 / 1.323 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.044e-06/0.3296, allocations: 3.938 kB / 1.323 GB, free: 0.9688 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.3296, allocations: 0 / 1.323 GB, free: 0.9688 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.0006895/0.3303, allocations: 379.2 kB / 1.324 GB, free: 0.5508 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.3303, allocations: 15.98 kB / 1.324 GB, free: 0.5352 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.45e-05/0.3304, allocations: 30.75 kB / 1.324 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001639/0.3305, allocations: 24.88 kB / 1.324 GB, free: 484 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002221/0.3308, allocations: 180.3 kB / 1.324 GB, free: 264 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.3308, allocations: 8.375 kB / 1.324 GB, free: 256 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.627e-05/0.3308, allocations: 4.375 kB / 1.324 GB, free: 252 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002055/0.331, allocations: 93.69 kB / 1.324 GB, free: 152 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.331, allocations: 0 / 1.324 GB, free: 152 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.755e-05/0.3311, allocations: 4 kB / 1.324 GB, free: 148 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.3311, allocations: 0 / 1.324 GB, free: 148 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.3312, allocations: 51.91 kB / 1.324 GB, free: 96 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005673/0.3318, allocations: 320.6 kB / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002751/0.332, allocations: 90.56 kB / 1.324 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.313e-05/0.3321, allocations: 36.83 kB / 1.324 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.3322, allocations: 4 kB / 1.324 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002386/0.3324, allocations: 111.3 kB / 1.325 GB, free: 15.47 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.3324, allocations: 0 / 1.325 GB, free: 15.47 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0004066/0.3328, allocations: 177.5 kB / 1.325 GB, free: 15.29 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.3329, allocations: 51.41 kB / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.516e-05/0.3329, allocations: 117.8 kB / 1.325 GB, free: 15.1 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.333, allocations: 29.7 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.52e-05/0.333, allocations: 88.38 kB / 1.325 GB, free: 14.98 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.596e-05/0.3331, allocations: 35.88 kB / 1.325 GB, free: 14.94 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.269e-05/0.3331, allocations: 29.7 kB / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002091/0.3333, allocations: 322.8 kB / 1.325 GB, free: 14.58 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.455e-05/0.3334, allocations: 27.98 kB / 1.325 GB, free: 14.55 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.966e-05/0.3335, allocations: 50.31 kB / 1.325 GB, free: 14.5 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.3337, allocations: 66.08 kB / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.3337, allocations: 4 kB / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000415/0.3341, allocations: 121.4 kB / 1.326 GB, free: 14.3 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.3341, allocations: 4 kB / 1.326 GB, free: 14.3 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.3341, allocations: 0 / 1.326 GB, free: 14.3 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.3342, allocations: 0 / 1.326 GB, free: 14.3 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.943e-05/0.3342, allocations: 16 kB / 1.326 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.3342, allocations: 0 / 1.326 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.115e-05/0.3343, allocations: 11.98 kB / 1.326 GB, free: 14.27 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.3343, allocations: 8 kB / 1.326 GB, free: 14.26 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.0002853/0.3346, allocations: 121.7 kB / 1.326 GB, free: 14.13 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/0.3347, allocations: 11.94 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.806e-05/0.3347, allocations: 16.38 kB / 1.326 GB, free: 14.1 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3347, allocations: 0 / 1.326 GB, free: 14.1 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3347, allocations: 4 kB / 1.326 GB, free: 14.1 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3347, allocations: 384 / 1.326 GB, free: 14.1 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002281/0.3349, allocations: 197.5 kB / 1.326 GB, free: 13.86 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.335, allocations: 4 kB / 1.326 GB, free: 13.85 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.732e-05/0.335, allocations: 8 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.543e-06/0.335, allocations: 7.938 kB / 1.326 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.018e-05/0.3351, allocations: 3.984 kB / 1.326 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.3351, allocations: 0 / 1.326 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3351, allocations: 0 / 1.326 GB, free: 13.83 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000529/0.3356, allocations: 220.9 kB / 1.326 GB, free: 13.6 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.913e-05/0.3357, allocations: 81.06 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.428e-05/0.3357, allocations: 12.02 kB / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.054e-05/0.3358, allocations: 4 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.067e-05/0.3358, allocations: 15.97 kB / 1.326 GB, free: 13.47 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.3358, allocations: 4 kB / 1.326 GB, free: 13.46 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.927e-05/0.3359, allocations: 91.27 kB / 1.326 GB, free: 13.38 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3359, allocations: 4.062 kB / 1.326 GB, free: 13.37 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002322/0.3361, allocations: 23.94 kB / 1.326 GB, free: 13.35 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.0008007/0.3369, allocations: 0.7568 MB / 1.327 GB, free: 12.56 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002474/0.3372, allocations: 80.02 kB / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3372, allocations: 0 / 1.327 GB, free: 12.48 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.3373, allocations: 51.91 kB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.3375, allocations: 24.11 kB / 1.327 GB, free: 12.41 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001943/0.3395, allocations: 1.514 MB / 1.329 GB, free: 10.82 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.3398, allocations: 0.6924 MB / 1.329 GB, free: 10.1 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.034e-05/0.3399, allocations: 12.66 kB / 1.329 GB, free: 10.09 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.79e-05/0.3399, allocations: 19.44 kB / 1.329 GB, free: 10.07 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.3399, allocations: 0 / 1.329 GB, free: 10.07 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02676/0.3667, allocations: 2.3 MB / 1.332 GB, free: 7.883 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.952/8.318, allocations: 8.641 kB / 1.332 GB, free: 7.875 MB / 1.029 GB " [Timeout remaining time 292] (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: 14.68385281204246]