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.001151/0.001151, allocations: 73.09 kB / 20.65 MB, free: 3.848 MB / 18.57 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.001144/0.001144, allocations: 173 kB / 24.06 MB, free: 452 kB / 18.57 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.086/1.086, allocations: 177.1 MB / 204.5 MB, free: 5.516 MB / 186.7 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.244/2.244, allocations: 429.5 MB / 0.6743 GB, free: 3.945 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.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: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 0.8794 GB, free: 6.039 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/1.984e-05, allocations: 10.25 kB / 0.8794 GB, free: 6.027 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001993/0.002013, allocations: 1.642 MB / 0.881 GB, free: 4.398 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0006425/0.002656, allocations: 0.4947 MB / 0.8815 GB, free: 3.902 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.2e-05/0.002708, allocations: 4.844 kB / 0.8815 GB, free: 3.898 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.363e-05/0.002731, allocations: 3.938 kB / 0.8815 GB, free: 3.895 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.196e-05/0.002783, allocations: 5.062 kB / 0.8815 GB, free: 3.891 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001904/0.002974, allocations: 48.66 kB / 0.8815 GB, free: 3.844 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.003076, allocations: 75.83 kB / 0.8816 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 6.813e-05/0.003144, allocations: 7.984 kB / 0.8816 GB, free: 3.762 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.003253, allocations: 52.92 kB / 0.8817 GB, free: 3.711 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 5.314e-05/0.003306, allocations: 31.89 kB / 0.8817 GB, free: 3.68 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.276e-05/0.003319, allocations: 4.656 kB / 0.8817 GB, free: 3.676 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 3.36e-05/0.003353, allocations: 8 kB / 0.8817 GB, free: 3.668 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.85e-05/0.003371, allocations: 16.89 kB / 0.8817 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.574e-05/0.003397, allocations: 23.91 kB / 0.8818 GB, free: 3.629 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 9.127e-05/0.003488, allocations: 56.62 kB / 0.8818 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.00349, allocations: 0 / 0.8818 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of FrontEnd: time 6.31e-07/0.003491, allocations: 3.594 kB / 0.8818 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.765e-06/0.003494, allocations: 0 / 0.8818 GB, free: 3.574 MB / 0.8386 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.0003516/0.003845, allocations: 400.4 kB / 0.8822 GB, free: 3.148 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.003879, allocations: 8.031 kB / 0.8822 GB, free: 3.141 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.402e-05/0.003973, allocations: 24.88 kB / 0.8822 GB, free: 3.117 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/0.004087, allocations: 128.5 kB / 0.8824 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.004102, allocations: 8.359 kB / 0.8824 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.004119, allocations: 8.375 kB / 0.8824 GB, free: 2.949 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.779e-05/0.004216, allocations: 79.53 kB / 0.8824 GB, free: 2.863 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.643e-06/0.004223, allocations: 192 / 0.8824 GB, free: 2.863 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.644e-06/0.004231, allocations: 0.9688 kB / 0.8824 GB, free: 2.863 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.004238, allocations: 12.59 kB / 0.8825 GB, free: 2.852 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.336e-05/0.004271, allocations: 15.98 kB / 0.8825 GB, free: 2.836 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002647/0.004536, allocations: 277.2 kB / 0.8827 GB, free: 2.539 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001361/0.004672, allocations: 84.58 kB / 0.8828 GB, free: 2.445 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.644e-05/0.004698, allocations: 23.67 kB / 0.8828 GB, free: 2.418 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.019e-05/0.004708, allocations: 4 kB / 0.8828 GB, free: 2.414 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001211/0.004829, allocations: 105 kB / 0.8829 GB, free: 2.297 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 9.32e-07/0.00483, allocations: 0 / 0.8829 GB, free: 2.297 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0001831/0.005013, allocations: 137.5 kB / 0.8831 GB, free: 2.156 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.005046, allocations: 55.41 kB / 0.8831 GB, free: 2.09 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.228e-05/0.005108, allocations: 177.8 kB / 0.8833 GB, free: 1.898 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.005121, allocations: 25.7 kB / 0.8833 GB, free: 1.867 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.001e-05/0.005161, allocations: 135.1 kB / 0.8835 GB, free: 1.727 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.656e-05/0.005187, allocations: 31.78 kB / 0.8835 GB, free: 1.695 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.408e-05/0.005221, allocations: 31.36 kB / 0.8835 GB, free: 1.656 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.005328, allocations: 0.4962 MB / 0.884 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.806e-05/0.005347, allocations: 11.98 kB / 0.884 GB, free: 1.137 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.068e-05/0.005377, allocations: 39.34 kB / 0.884 GB, free: 1.09 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.81e-05/0.005425, allocations: 47.25 kB / 0.8841 GB, free: 1.035 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.005427, allocations: 0 / 0.8841 GB, free: 1.035 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 8.924e-05/0.005516, allocations: 90.05 kB / 0.8842 GB, free: 0.9414 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.005527, allocations: 7.938 kB / 0.8842 GB, free: 0.9336 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.005531, allocations: 0 / 0.8842 GB, free: 0.9336 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.107e-06/0.00554, allocations: 4 kB / 0.8842 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.256e-05/0.005582, allocations: 15.92 kB / 0.8842 GB, free: 0.9141 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.027e-06/0.005586, allocations: 8 kB / 0.8842 GB, free: 0.9062 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.287e-05/0.005619, allocations: 11.94 kB / 0.8842 GB, free: 0.8945 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.005624, allocations: 0 / 0.8842 GB, free: 0.8945 MB / 0.8386 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 7.693e-05/0.005701, allocations: 164.6 kB / 0.8844 GB, free: 0.7227 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.231e-05/0.005723, allocations: 19.89 kB / 0.8844 GB, free: 0.7031 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.792e-05/0.005741, allocations: 8.438 kB / 0.8844 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.005743, allocations: 3.938 kB / 0.8844 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.005748, allocations: 0 / 0.8844 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.005752, allocations: 0 / 0.8844 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.533e-05/0.005837, allocations: 133.2 kB / 0.8845 GB, free: 0.5352 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.005839, allocations: 7.938 kB / 0.8845 GB, free: 0.5273 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.166e-05/0.00587, allocations: 4 kB / 0.8845 GB, free: 0.5234 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.005871, allocations: 4 kB / 0.8846 GB, free: 0.5195 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.005881, allocations: 7.984 kB / 0.8846 GB, free: 0.5117 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.005884, allocations: 3.938 kB / 0.8846 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.005884, allocations: 0 / 0.8846 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000167/0.006051, allocations: 172.4 kB / 0.8847 GB, free: 324 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.644e-06/0.006059, allocations: 11.92 kB / 0.8847 GB, free: 312 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.295e-05/0.006072, allocations: 0 / 0.8847 GB, free: 312 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.529e-05/0.006097, allocations: 11.94 kB / 0.8848 GB, free: 300 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.401e-05/0.006131, allocations: 19.94 kB / 0.8848 GB, free: 280 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.006139, allocations: 11.98 kB / 0.8848 GB, free: 268 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.325e-05/0.006172, allocations: 127.2 kB / 0.8849 GB, free: 140 kB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.006172, allocations: 0 / 0.8849 GB, free: 140 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001321/0.006305, allocations: 23.98 kB / 0.8849 GB, free: 116 kB / 0.8386 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 7.103e-05/0.006376, allocations: 95.25 kB / 0.885 GB, free: 12 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000106/0.006482, allocations: 66.59 kB / 0.8851 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 8.52e-07/0.006482, allocations: 0 / 0.8851 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.453e-05/0.006527, allocations: 47.59 kB / 0.8851 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001303/0.006657, allocations: 15.98 kB / 0.8851 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003985/0.007056, allocations: 246.4 kB / 0.8854 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.835e-05/0.007084, allocations: 67.34 kB / 0.8854 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.889e-05/0.007113, allocations: 8.672 kB / 0.8854 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.895e-05/0.007172, allocations: 82.19 kB / 0.8855 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of SimCode: time 5.11e-07/0.007172, allocations: 0 / 0.8855 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of Templates: time 0.002514/0.009686, allocations: 1.276 MB / 0.8868 GB, free: 14.18 MB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.871729961130768]