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.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.001746/0.001746, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.002301/0.002301, allocations: 220.4 kB / 23.03 MB, free: 4.945 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.429/1.429, allocations: 230.6 MB / 256.8 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.744/2.744, allocations: 476.8 MB / 0.7715 GB, free: 3.926 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_11_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.001995/0.001995, allocations: 61.69 kB / 1.118 GB, free: 39.63 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.282, allocations: 170 MB / 1.284 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003158/0.2851, allocations: 1.602 MB / 1.286 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001134/0.2863, allocations: 484.6 kB / 1.286 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.876e-05/0.2864, allocations: 0 / 1.286 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.1e-05/0.2864, allocations: 3.938 kB / 1.286 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.028e-05/0.2865, allocations: 11.92 kB / 1.286 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003261/0.2868, allocations: 39.89 kB / 1.286 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001882/0.287, allocations: 71.83 kB / 1.286 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001443/0.2871, allocations: 7.938 kB / 1.286 GB, free: 8.535 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.2873, allocations: 47.91 kB / 1.286 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.2874, allocations: 31.84 kB / 1.286 GB, free: 8.457 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.394e-05/0.2875, allocations: 8 kB / 1.286 GB, free: 8.449 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.347e-05/0.2875, allocations: 8 kB / 1.286 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.565e-05/0.2876, allocations: 19.97 kB / 1.286 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.013e-05/0.2876, allocations: 27.86 kB / 1.286 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001998/0.2878, allocations: 69.17 kB / 1.286 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.2878, allocations: 0 / 1.286 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.224e-06/0.2878, allocations: 0 / 1.286 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.985e-06/0.2878, allocations: 0 / 1.286 GB, free: 8.328 MB / 0.9825 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.0007843/0.2886, allocations: 310 kB / 1.287 GB, free: 7.996 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.588e-05/0.2887, allocations: 12.03 kB / 1.287 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.163e-05/0.2887, allocations: 192 / 1.287 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.93e-05/0.2887, allocations: 38.75 kB / 1.287 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/0.2889, allocations: 16.88 kB / 1.287 GB, free: 7.922 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003933/0.2893, allocations: 122.5 kB / 1.287 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.987e-05/0.2894, allocations: 8.359 kB / 1.287 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.87e-05/0.2894, allocations: 8.375 kB / 1.287 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002496/0.2896, allocations: 93.45 kB / 1.287 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.2897, allocations: 0 / 1.287 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.2897, allocations: 4 kB / 1.287 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.411e-06/0.2897, allocations: 0 / 1.287 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000144/0.2898, allocations: 39.97 kB / 1.287 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006484/0.2905, allocations: 279.8 kB / 1.287 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003202/0.2908, allocations: 86.58 kB / 1.287 GB, free: 7.211 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.279e-05/0.2909, allocations: 36.84 kB / 1.287 GB, free: 7.172 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.888e-05/0.2909, allocations: 7.984 kB / 1.287 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002751/0.2912, allocations: 103.3 kB / 1.288 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.823e-06/0.2912, allocations: 3.938 kB / 1.288 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0004254/0.2916, allocations: 173.5 kB / 1.288 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/0.2917, allocations: 59.39 kB / 1.288 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.72e-05/0.2918, allocations: 117.8 kB / 1.288 GB, free: 6.676 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.461e-05/0.2918, allocations: 29.7 kB / 1.288 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.872e-05/0.2919, allocations: 88.38 kB / 1.288 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.169e-05/0.2919, allocations: 31.73 kB / 1.288 GB, free: 6.52 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.163e-05/0.292, allocations: 25.72 kB / 1.288 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2921, allocations: 326.8 kB / 1.288 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.079e-05/0.2922, allocations: 27.98 kB / 1.288 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.156e-05/0.2923, allocations: 45.69 kB / 1.288 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/0.2924, allocations: 73.58 kB / 1.289 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2924, allocations: 4 kB / 1.289 GB, free: 6 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002176/0.2926, allocations: 110 kB / 1.289 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.2926, allocations: 4 kB / 1.289 GB, free: 5.883 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.2927, allocations: 0 / 1.289 GB, free: 5.883 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.2927, allocations: 4 kB / 1.289 GB, free: 5.879 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.845e-05/0.2927, allocations: 11.98 kB / 1.289 GB, free: 5.867 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.2928, allocations: 0 / 1.289 GB, free: 5.867 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.045e-05/0.2928, allocations: 11.98 kB / 1.289 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.2928, allocations: 4 kB / 1.289 GB, free: 5.852 MB / 0.9825 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.0001115/0.293, allocations: 130.1 kB / 1.289 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.009e-05/0.293, allocations: 11.98 kB / 1.289 GB, free: 5.703 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.685e-05/0.293, allocations: 20.3 kB / 1.289 GB, free: 5.68 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.293, allocations: 0 / 1.289 GB, free: 5.68 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.293, allocations: 7.938 kB / 1.289 GB, free: 5.672 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.293, allocations: 4 kB / 1.289 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001634/0.2932, allocations: 160.8 kB / 1.289 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2932, allocations: 0 / 1.289 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.811e-05/0.2933, allocations: 11.98 kB / 1.289 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.2933, allocations: 0 / 1.289 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.2933, allocations: 8 kB / 1.289 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2933, allocations: 0 / 1.289 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2933, allocations: 0 / 1.289 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000422/0.2937, allocations: 228.9 kB / 1.289 GB, free: 5.207 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.74e-05/0.2937, allocations: 11.92 kB / 1.289 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/0.2938, allocations: 4 kB / 1.289 GB, free: 5.191 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.525e-05/0.2938, allocations: 11.98 kB / 1.289 GB, free: 5.18 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.104e-05/0.2939, allocations: 11.97 kB / 1.289 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.2939, allocations: 8 kB / 1.289 GB, free: 5.16 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.022e-05/0.294, allocations: 91.33 kB / 1.289 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6.1e-08/0.294, allocations: 0 / 1.289 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002091/0.2942, allocations: 19.94 kB / 1.289 GB, free: 5.051 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.0007336/0.2949, allocations: 0.7529 MB / 1.29 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000239/0.2951, allocations: 79.95 kB / 1.29 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.2951, allocations: 4 kB / 1.29 GB, free: 4.188 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.2953, allocations: 51.91 kB / 1.29 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002489/0.2955, allocations: 18.23 kB / 1.29 GB, free: 4.121 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001839/0.2974, allocations: 1.507 MB / 1.292 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.078e-05/0.2974, allocations: 75.33 kB / 1.292 GB, free: 2.434 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.349e-05/0.2975, allocations: 8.938 kB / 1.292 GB, free: 2.426 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.69e-05/0.2975, allocations: 19.44 kB / 1.292 GB, free: 2.406 MB / 0.9825 GB Notification: Performance of SimCode: time 4.21e-07/0.2975, allocations: 0 / 1.292 GB, free: 2.406 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02401/0.3216, allocations: 2.55 MB / 1.294 GB, free: 28 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/12.78, allocations: 10.33 kB / 1.294 GB, free: 20 kB / 0.9825 GB " [Timeout remaining time 287] (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/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: 19.276942810975015]