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.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.001401/0.001401, allocations: 102.3 kB / 19.7 MB, free: 2.254 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.001628/0.001628, allocations: 216.9 kB / 23.01 MB, free: 4.609 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.328/1.328, allocations: 230.6 MB / 256.8 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.933/2.933, allocations: 0.505 GB / 0.8108 GB, free: 22.03 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") [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.00189/0.00189, allocations: 70.19 kB / 1.178 GB, free: 16.87 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2918, allocations: 180.2 MB / 1.354 GB, free: 7.918 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002673/0.2944, allocations: 1.605 MB / 1.356 GB, free: 6.301 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00092/0.2954, allocations: 0.5104 MB / 1.356 GB, free: 5.785 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.149e-05/0.2954, allocations: 0 / 1.356 GB, free: 5.785 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.438e-05/0.2954, allocations: 3.938 kB / 1.356 GB, free: 5.781 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.964e-05/0.2955, allocations: 19.84 kB / 1.356 GB, free: 5.762 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002047/0.2957, allocations: 43.89 kB / 1.356 GB, free: 5.719 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001277/0.2958, allocations: 75.78 kB / 1.356 GB, free: 5.645 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 7.974e-05/0.2959, allocations: 7.984 kB / 1.356 GB, free: 5.637 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.296, allocations: 39.91 kB / 1.356 GB, free: 5.598 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 7.594e-05/0.2961, allocations: 35.78 kB / 1.356 GB, free: 5.562 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.735e-05/0.2961, allocations: 8 kB / 1.356 GB, free: 5.555 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 3.915e-05/0.2962, allocations: 8 kB / 1.356 GB, free: 5.547 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.13e-05/0.2962, allocations: 15.98 kB / 1.356 GB, free: 5.531 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.68e-05/0.2962, allocations: 35.84 kB / 1.356 GB, free: 5.496 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001328/0.2964, allocations: 67.72 kB / 1.357 GB, free: 5.43 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.2964, allocations: 0 / 1.357 GB, free: 5.43 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2964, allocations: 0 / 1.357 GB, free: 5.43 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.2964, allocations: 0 / 1.357 GB, free: 5.43 MB / 1.045 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.0005308/0.2969, allocations: 306.1 kB / 1.357 GB, free: 5.102 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.019e-05/0.2969, allocations: 8.031 kB / 1.357 GB, free: 5.094 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001388/0.2971, allocations: 20.89 kB / 1.357 GB, free: 5.074 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/0.2973, allocations: 126.5 kB / 1.357 GB, free: 4.926 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.2973, allocations: 4.375 kB / 1.357 GB, free: 4.922 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.2973, allocations: 12.31 kB / 1.357 GB, free: 4.91 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001741/0.2975, allocations: 89.94 kB / 1.357 GB, free: 4.816 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.2975, allocations: 0 / 1.357 GB, free: 4.816 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.2975, allocations: 4 kB / 1.357 GB, free: 4.812 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.2975, allocations: 0 / 1.357 GB, free: 4.812 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001276/0.2977, allocations: 43.97 kB / 1.357 GB, free: 4.77 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004922/0.2981, allocations: 299.7 kB / 1.357 GB, free: 4.434 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/0.2984, allocations: 82.48 kB / 1.357 GB, free: 4.344 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.206e-05/0.2985, allocations: 36.84 kB / 1.357 GB, free: 4.305 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.2985, allocations: 3.984 kB / 1.357 GB, free: 4.301 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002023/0.2987, allocations: 119.3 kB / 1.358 GB, free: 4.172 MB / 1.045 GB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.2987, allocations: 0 / 1.358 GB, free: 4.172 MB / 1.045 GB Notification: Performance of matching and sorting (n=11): time 0.0003672/0.2991, allocations: 169.6 kB / 1.358 GB, free: 4 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/0.2991, allocations: 55.39 kB / 1.358 GB, free: 3.934 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.759e-05/0.2992, allocations: 117.8 kB / 1.358 GB, free: 3.809 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.2992, allocations: 33.64 kB / 1.358 GB, free: 3.77 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 4.664e-05/0.2993, allocations: 84.38 kB / 1.358 GB, free: 3.684 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.615e-05/0.2993, allocations: 35.88 kB / 1.358 GB, free: 3.648 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.641e-05/0.2993, allocations: 25.72 kB / 1.358 GB, free: 3.617 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.2995, allocations: 326.8 kB / 1.358 GB, free: 3.289 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.442e-05/0.2996, allocations: 31.98 kB / 1.358 GB, free: 3.258 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.87e-05/0.2996, allocations: 57.62 kB / 1.359 GB, free: 3.195 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001273/0.2998, allocations: 62.14 kB / 1.359 GB, free: 3.129 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.2998, allocations: 0 / 1.359 GB, free: 3.129 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002114/0.3, allocations: 117.5 kB / 1.359 GB, free: 3.008 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.3, allocations: 4 kB / 1.359 GB, free: 3.004 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.3, allocations: 7.922 kB / 1.359 GB, free: 2.996 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.3, allocations: 4 kB / 1.359 GB, free: 2.992 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.984e-05/0.3001, allocations: 15.98 kB / 1.359 GB, free: 2.977 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.3001, allocations: 4 kB / 1.359 GB, free: 2.973 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.444e-05/0.3002, allocations: 11.94 kB / 1.359 GB, free: 2.961 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.3002, allocations: 4 kB / 1.359 GB, free: 2.957 MB / 1.045 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.0001092/0.3003, allocations: 135.8 kB / 1.359 GB, free: 2.816 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.462e-05/0.3003, allocations: 4 kB / 1.359 GB, free: 2.812 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.04e-05/0.3003, allocations: 16.36 kB / 1.359 GB, free: 2.797 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.3003, allocations: 0 / 1.359 GB, free: 2.797 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.3003, allocations: 0 / 1.359 GB, free: 2.797 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3003, allocations: 4 kB / 1.359 GB, free: 2.793 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001576/0.3005, allocations: 172.6 kB / 1.359 GB, free: 2.582 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.3005, allocations: 384 / 1.359 GB, free: 2.582 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.125e-05/0.3006, allocations: 11.98 kB / 1.359 GB, free: 2.57 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3006, allocations: 0 / 1.359 GB, free: 2.57 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.3006, allocations: 4 kB / 1.359 GB, free: 2.566 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3006, allocations: 3.938 kB / 1.359 GB, free: 2.562 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.3006, allocations: 4 kB / 1.359 GB, free: 2.559 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003828/0.301, allocations: 228.8 kB / 1.359 GB, free: 2.316 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.32e-05/0.301, allocations: 11.92 kB / 1.359 GB, free: 2.305 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.968e-05/0.301, allocations: 0 / 1.359 GB, free: 2.305 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.043e-05/0.3011, allocations: 11.98 kB / 1.359 GB, free: 2.293 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.6e-05/0.3011, allocations: 11.97 kB / 1.359 GB, free: 2.281 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.3011, allocations: 8 kB / 1.359 GB, free: 2.273 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.702e-05/0.3012, allocations: 91.27 kB / 1.359 GB, free: 2.184 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3012, allocations: 0 / 1.359 GB, free: 2.184 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0001894/0.3014, allocations: 20.06 kB / 1.359 GB, free: 2.164 MB / 1.045 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.0001019/0.3015, allocations: 107.2 kB / 1.36 GB, free: 2.051 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002167/0.3017, allocations: 87.89 kB / 1.36 GB, free: 1.965 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3017, allocations: 3.938 kB / 1.36 GB, free: 1.961 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.3018, allocations: 51.91 kB / 1.36 GB, free: 1.91 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001743/0.302, allocations: 7.984 kB / 1.36 GB, free: 1.902 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005154/0.3025, allocations: 288.2 kB / 1.36 GB, free: 1.59 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003142/0.3028, allocations: 0.6924 MB / 1.361 GB, free: 0.8711 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.985e-05/0.3028, allocations: 19.38 kB / 1.361 GB, free: 0.8516 MB / 1.045 GB Notification: Performance of SimCode: time 3.21e-07/0.3028, allocations: 0 / 1.361 GB, free: 0.8516 MB / 1.045 GB Notification: Performance of Templates: time 0.002638/0.3055, allocations: 1.161 MB / 1.362 GB, free: 15.69 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 800] 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/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: 10.029404867003905]