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.000917/0.000917, allocations: 81.86 kB / 19.87 MB, free: 4.621 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.001727/0.001727, allocations: 169.7 kB / 23.28 MB, free: 1.219 MB / 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 0.931/0.931, allocations: 177.1 MB / 203.7 MB, free: 5.504 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.423/2.423, allocations: 438.1 MB / 0.682 GB, free: 14.15 MB / 0.6511 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.723e-06/1.723e-06, allocations: 0 / 0.8898 GB, free: 9.734 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.733e-05/2.905e-05, allocations: 6.25 kB / 0.8898 GB, free: 9.727 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003236/0.003265, allocations: 1.639 MB / 0.8914 GB, free: 8.078 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0009907/0.004256, allocations: 498.7 kB / 0.8918 GB, free: 7.586 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.595e-05/0.004332, allocations: 0 / 0.8918 GB, free: 7.586 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 3.184e-05/0.004364, allocations: 7.922 kB / 0.8918 GB, free: 7.578 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 7.468e-05/0.004438, allocations: 11.88 kB / 0.8919 GB, free: 7.566 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002613/0.0047, allocations: 39.83 kB / 0.8919 GB, free: 7.527 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001422/0.004842, allocations: 83.75 kB / 0.892 GB, free: 7.445 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 9.374e-05/0.004936, allocations: 4 kB / 0.892 GB, free: 7.441 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.005114, allocations: 55.88 kB / 0.892 GB, free: 7.387 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 7.569e-05/0.00519, allocations: 19.97 kB / 0.8921 GB, free: 7.367 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.072e-05/0.005211, allocations: 8 kB / 0.8921 GB, free: 7.359 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 5.044e-05/0.005261, allocations: 15.92 kB / 0.8921 GB, free: 7.344 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 2.416e-05/0.005285, allocations: 12 kB / 0.8921 GB, free: 7.332 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 3.606e-05/0.005321, allocations: 27.91 kB / 0.8921 GB, free: 7.305 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.000131/0.005452, allocations: 47.81 kB / 0.8922 GB, free: 7.258 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.005457, allocations: 4 kB / 0.8922 GB, free: 7.254 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.364e-06/0.00546, allocations: 7.984 kB / 0.8922 GB, free: 7.246 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.977e-06/0.005464, allocations: 0 / 0.8922 GB, free: 7.246 MB / 0.8542 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.0004753/0.005939, allocations: 400.4 kB / 0.8926 GB, free: 6.82 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.005981, allocations: 8.031 kB / 0.8926 GB, free: 6.812 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.006123, allocations: 24.88 kB / 0.8926 GB, free: 6.789 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.006267, allocations: 124.5 kB / 0.8927 GB, free: 6.641 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.006287, allocations: 8.375 kB / 0.8927 GB, free: 6.633 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.03e-05/0.006308, allocations: 4.375 kB / 0.8927 GB, free: 6.629 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001464/0.006454, allocations: 90.83 kB / 0.8928 GB, free: 6.531 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.006462, allocations: 4.188 kB / 0.8928 GB, free: 6.527 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.006472, allocations: 384 / 0.8928 GB, free: 6.527 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.00648, allocations: 3.938 kB / 0.8928 GB, free: 6.523 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.68e-05/0.006527, allocations: 15.98 kB / 0.8928 GB, free: 6.508 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003968/0.006924, allocations: 280.3 kB / 0.8931 GB, free: 6.207 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001981/0.007122, allocations: 87.03 kB / 0.8932 GB, free: 6.109 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.342e-05/0.007175, allocations: 31.67 kB / 0.8932 GB, free: 6.074 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.007201, allocations: 4 kB / 0.8932 GB, free: 6.07 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001757/0.007376, allocations: 105.1 kB / 0.8933 GB, free: 5.953 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=11): time 1.663e-06/0.007378, allocations: 0 / 0.8933 GB, free: 5.953 MB / 0.8542 GB Notification: Performance of matching and sorting (n=11): time 0.0002595/0.007638, allocations: 141.5 kB / 0.8934 GB, free: 5.809 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.529e-05/0.007673, allocations: 51.41 kB / 0.8935 GB, free: 5.746 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.361e-05/0.007766, allocations: 169.9 kB / 0.8937 GB, free: 5.562 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.007783, allocations: 25.7 kB / 0.8937 GB, free: 5.531 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.042e-05/0.007843, allocations: 139.1 kB / 0.8938 GB, free: 5.387 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 4.026e-05/0.007884, allocations: 27.8 kB / 0.8938 GB, free: 5.359 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.066e-05/0.007934, allocations: 35.34 kB / 0.8939 GB, free: 5.316 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.008079, allocations: 0.4923 MB / 0.8944 GB, free: 4.812 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.816e-05/0.008107, allocations: 8 kB / 0.8944 GB, free: 4.805 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.467e-05/0.008151, allocations: 39.34 kB / 0.8944 GB, free: 4.758 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.302e-05/0.008224, allocations: 47.73 kB / 0.8944 GB, free: 4.703 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.008226, allocations: 0 / 0.8944 GB, free: 4.703 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001395/0.008366, allocations: 97.44 kB / 0.8945 GB, free: 4.602 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.008382, allocations: 7.938 kB / 0.8945 GB, free: 4.594 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.008387, allocations: 0 / 0.8945 GB, free: 4.594 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.008401, allocations: 0 / 0.8945 GB, free: 4.594 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.416e-05/0.008465, allocations: 12 kB / 0.8946 GB, free: 4.582 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.397e-06/0.008468, allocations: 4 kB / 0.8946 GB, free: 4.578 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.343e-05/0.008522, allocations: 19.88 kB / 0.8946 GB, free: 4.559 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.495e-06/0.008529, allocations: 0 / 0.8946 GB, free: 4.559 MB / 0.8542 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 9.323e-05/0.008622, allocations: 164.5 kB / 0.8947 GB, free: 4.387 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.363e-05/0.008646, allocations: 15.92 kB / 0.8948 GB, free: 4.371 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.279e-05/0.008679, allocations: 16.44 kB / 0.8948 GB, free: 4.355 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.008681, allocations: 0 / 0.8948 GB, free: 4.355 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-06/0.008683, allocations: 0 / 0.8948 GB, free: 4.355 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.008687, allocations: 0 / 0.8948 GB, free: 4.355 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.008805, allocations: 129.2 kB / 0.8949 GB, free: 4.203 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.008806, allocations: 4 kB / 0.8949 GB, free: 4.199 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.36e-05/0.00886, allocations: 8 kB / 0.8949 GB, free: 4.191 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.008865, allocations: 4 kB / 0.8949 GB, free: 4.188 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.008877, allocations: 3.984 kB / 0.8949 GB, free: 4.184 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.00888, allocations: 3.938 kB / 0.8949 GB, free: 4.18 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.008881, allocations: 0 / 0.8949 GB, free: 4.18 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002499/0.009131, allocations: 176.2 kB / 0.8951 GB, free: 3.984 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.478e-05/0.009146, allocations: 7.953 kB / 0.8951 GB, free: 3.977 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.009167, allocations: 3.984 kB / 0.8951 GB, free: 3.973 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.31e-05/0.00921, allocations: 11.94 kB / 0.8951 GB, free: 3.961 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/0.009253, allocations: 16 kB / 0.8951 GB, free: 3.945 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.009265, allocations: 12 kB / 0.8951 GB, free: 3.934 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.426e-05/0.009329, allocations: 131.2 kB / 0.8953 GB, free: 3.805 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.009329, allocations: 0 / 0.8953 GB, free: 3.805 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002418/0.009571, allocations: 20 kB / 0.8953 GB, free: 3.785 MB / 0.8542 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.0001214/0.009692, allocations: 102.9 kB / 0.8954 GB, free: 3.68 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001308/0.009823, allocations: 67.53 kB / 0.8954 GB, free: 3.609 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.009825, allocations: 0 / 0.8954 GB, free: 3.609 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 6.705e-05/0.009892, allocations: 47.59 kB / 0.8955 GB, free: 3.559 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001964/0.01009, allocations: 15.98 kB / 0.8955 GB, free: 3.543 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005969/0.01069, allocations: 238.5 kB / 0.8957 GB, free: 3.281 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.802e-05/0.01072, allocations: 60.25 kB / 0.8958 GB, free: 3.203 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.313e-05/0.01077, allocations: 12.72 kB / 0.8958 GB, free: 3.191 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.491e-05/0.01084, allocations: 78.19 kB / 0.8959 GB, free: 3.113 MB / 0.8542 GB Notification: Performance of SimCode: time 8.72e-07/0.01084, allocations: 0 / 0.8959 GB, free: 3.113 MB / 0.8542 GB Notification: Performance of Templates: time 0.003709/0.01455, allocations: 1.248 MB / 0.8971 GB, free: 1.879 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.344385205768049]