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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009226/0.0009227, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.476/2.476, allocations: 436.5 MB / 0.7104 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003121/0.0003122, allocations: 11.98 kB / 0.8708 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6274/0.6277, allocations: 153.7 MB / 1.021 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001617/0.6294, allocations: 1.268 MB / 1.022 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0007018/0.6301, allocations: 415.5 kB / 1.022 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.174e-05/0.6302, allocations: 0 / 1.022 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.673e-05/0.6302, allocations: 7.938 kB / 1.022 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.078e-05/0.6303, allocations: 15.95 kB / 1.022 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001788/0.6305, allocations: 19.92 kB / 1.023 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.112e-05/0.6306, allocations: 47.88 kB / 1.023 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.262e-05/0.6307, allocations: 8 kB / 1.023 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.551e-05/0.6308, allocations: 27.91 kB / 1.023 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.677e-05/0.6309, allocations: 27.91 kB / 1.023 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.673e-05/0.6309, allocations: 4 kB / 1.023 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.364e-05/0.6309, allocations: 8 kB / 1.023 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.152e-05/0.6309, allocations: 11.98 kB / 1.023 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.277e-05/0.631, allocations: 33.64 kB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.515e-05/0.6311, allocations: 45.86 kB / 1.023 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.973e-06/0.6311, allocations: 0 / 1.023 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.583e-06/0.6311, allocations: 0 / 1.023 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.08e-06/0.6311, allocations: 0 / 1.023 GB, free: 15.14 MB / 0.7794 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.0005493/0.6317, allocations: 367.1 kB / 1.023 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.6317, allocations: 15.98 kB / 1.023 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.952e-05/0.6317, allocations: 4 kB / 1.023 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.6319, allocations: 178.8 kB / 1.023 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.747e-05/0.6319, allocations: 7.969 kB / 1.023 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.826e-05/0.6319, allocations: 12 kB / 1.023 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001881/0.6321, allocations: 85.53 kB / 1.023 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.6321, allocations: 0 / 1.023 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.6322, allocations: 0 / 1.023 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.607e-06/0.6322, allocations: 4 kB / 1.023 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001363/0.6323, allocations: 47.97 kB / 1.023 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005327/0.6329, allocations: 320.7 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002541/0.6331, allocations: 110.5 kB / 1.024 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/0.6331, allocations: 0 / 1.024 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002562/0.6334, allocations: 115.2 kB / 1.024 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.362e-06/0.6334, allocations: 0 / 1.024 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0003779/0.6338, allocations: 177.7 kB / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.839e-05/0.6338, allocations: 59.34 kB / 1.024 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.721e-05/0.6339, allocations: 113.8 kB / 1.024 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.634, allocations: 29.7 kB / 1.024 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.259e-05/0.634, allocations: 80.38 kB / 1.024 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.273e-05/0.634, allocations: 31.64 kB / 1.024 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.111e-06/0.6341, allocations: 8 kB / 1.024 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.359e-05/0.6342, allocations: 318.8 kB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.82e-05/0.6342, allocations: 31.98 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.262e-05/0.6343, allocations: 45.7 kB / 1.025 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.971e-05/0.6344, allocations: 32.36 kB / 1.025 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.6344, allocations: 7.953 kB / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002127/0.6347, allocations: 113.5 kB / 1.025 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.6347, allocations: 9.812 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.6347, allocations: 0 / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.6347, allocations: 0 / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.868e-05/0.6348, allocations: 19.92 kB / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.6348, allocations: 0 / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.705e-05/0.6349, allocations: 23.89 kB / 1.025 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-06/0.6349, allocations: 0 / 1.025 GB, free: 12.6 MB / 0.7794 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 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.soc.charged,soc.charged,$PRE.soc.discharged,soc.discharged,soc.suspend) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.284e-05/0.635, allocations: 117.8 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.882e-05/0.635, allocations: 7.953 kB / 1.025 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.848e-05/0.6351, allocations: 16.36 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.6351, allocations: 3.938 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.6351, allocations: 4 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.6351, allocations: 0 / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.6352, allocations: 197.6 kB / 1.025 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.6352, allocations: 8 kB / 1.025 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.411e-05/0.6353, allocations: 23.88 kB / 1.025 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.6354, allocations: 0 / 1.025 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.6354, allocations: 4 kB / 1.025 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.6354, allocations: 0 / 1.025 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.6354, allocations: 0 / 1.025 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003731/0.6358, allocations: 220.9 kB / 1.026 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.754e-05/0.6358, allocations: 81.19 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.856e-05/0.6358, allocations: 15.94 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.427e-05/0.6359, allocations: 7.984 kB / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.645e-05/0.636, allocations: 11.97 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.636, allocations: 8 kB / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.042e-05/0.6361, allocations: 91.27 kB / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6361, allocations: 0 / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002054/0.6363, allocations: 20.06 kB / 1.026 GB, free: 11.68 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001116/0.6364, allocations: 103.2 kB / 1.026 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002189/0.6366, allocations: 91.89 kB / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.6366, allocations: 0 / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.6367, allocations: 71.91 kB / 1.026 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001487/0.6369, allocations: 13.72 kB / 1.026 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000475/0.6374, allocations: 302.7 kB / 1.026 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002167/0.6376, allocations: 0.6926 MB / 1.027 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.365e-05/0.6377, allocations: 12.66 kB / 1.027 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.34e-05/0.6377, allocations: 11.44 kB / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.6377, allocations: 0 / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of Templates: time 0.003031/0.6408, allocations: 0.8827 MB / 1.028 GB, free: 9.461 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) 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","../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches