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.001531/0.001532, allocations: 106.9 kB / 16.37 MB, free: 6.477 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.001689/0.001689, allocations: 193.8 kB / 17.31 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.437/2.437, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002001, allocations: 65.36 kB / 0.8774 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2725, allocations: 153 MB / 1.027 GB, free: 2.062 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00258/0.2751, allocations: 1.584 MB / 1.028 GB, free: 480 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0006448/0.2758, allocations: 458.7 kB / 1.029 GB, free: 16 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.275e-05/0.2758, allocations: 4 kB / 1.029 GB, free: 12 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.775e-05/0.2759, allocations: 3.938 kB / 1.029 GB, free: 8 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.06e-05/0.2759, allocations: 11.97 kB / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000178/0.2761, allocations: 23.97 kB / 1.029 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.698e-05/0.2762, allocations: 75.83 kB / 1.029 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.2763, allocations: 11.98 kB / 1.029 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.117e-05/0.2764, allocations: 35.75 kB / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.467e-05/0.2765, allocations: 35.84 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.942e-05/0.2765, allocations: 4 kB / 1.029 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.393e-05/0.2766, allocations: 8 kB / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.479e-05/0.2766, allocations: 11.97 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.456e-05/0.2767, allocations: 31.86 kB / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001018/0.2768, allocations: 63.77 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2768, allocations: 0 / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2768, allocations: 0 / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.2768, allocations: 0 / 1.029 GB, free: 15.7 MB / 0.8106 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.0005887/0.2774, allocations: 383.3 kB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.2774, allocations: 8.031 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.71e-05/0.2775, allocations: 8.844 kB / 1.029 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.2776, allocations: 168.3 kB / 1.03 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.848e-05/0.2777, allocations: 8.359 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.644e-05/0.2777, allocations: 16.25 kB / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000237/0.278, allocations: 81.95 kB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.278, allocations: 4 kB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.278, allocations: 0 / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.278, allocations: 4 kB / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001574/0.2782, allocations: 39.97 kB / 1.03 GB, free: 14.9 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006894/0.2789, allocations: 328.6 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.2792, allocations: 102.5 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.439e-05/0.2793, allocations: 44.84 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.2793, allocations: 0 / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003209/0.2796, allocations: 119.4 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.733e-06/0.2797, allocations: 3.938 kB / 1.03 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004395/0.2801, allocations: 169.6 kB / 1.03 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.083e-05/0.2802, allocations: 51.41 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.2803, allocations: 117.8 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.2803, allocations: 25.7 kB / 1.031 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.525e-05/0.2804, allocations: 92.36 kB / 1.031 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.908e-05/0.2805, allocations: 19.72 kB / 1.031 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.449e-05/0.2805, allocations: 29.7 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2807, allocations: 330.8 kB / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.205e-05/0.2808, allocations: 27.98 kB / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.365e-05/0.2809, allocations: 49.64 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/0.281, allocations: 61.64 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.281, allocations: 0 / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002197/0.2813, allocations: 117.5 kB / 1.031 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.2813, allocations: 12 kB / 1.031 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.2813, allocations: 0 / 1.031 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.2813, allocations: 0 / 1.031 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.869e-05/0.2814, allocations: 11.98 kB / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.2815, allocations: 4 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.347e-05/0.2815, allocations: 15.84 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.2816, allocations: 4 kB / 1.031 GB, free: 13.05 MB / 0.8106 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.0001122/0.2817, allocations: 129.6 kB / 1.031 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.542e-05/0.2817, allocations: 8 kB / 1.032 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.807e-05/0.2817, allocations: 12.38 kB / 1.032 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.2818, allocations: 7.938 kB / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.2818, allocations: 3.938 kB / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2818, allocations: 0 / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001954/0.282, allocations: 205.4 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.282, allocations: 0 / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.42e-05/0.2821, allocations: 8 kB / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2821, allocations: 0 / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.2821, allocations: 7.984 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.2821, allocations: 4 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2821, allocations: 0 / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003993/0.2825, allocations: 221.3 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.228e-05/0.2826, allocations: 85.12 kB / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.831e-05/0.2826, allocations: 4 kB / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.35e-05/0.2827, allocations: 11.98 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.879e-05/0.2828, allocations: 20.05 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.2828, allocations: 4 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.182e-05/0.2829, allocations: 87.27 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2829, allocations: 0 / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002179/0.2831, allocations: 20 kB / 1.032 GB, free: 12.14 MB / 0.8106 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.0001521/0.2833, allocations: 103.2 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002547/0.2835, allocations: 95.83 kB / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2835, allocations: 4 kB / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.2837, allocations: 63.92 kB / 1.032 GB, free: 11.87 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.2839, allocations: 18.17 kB / 1.032 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005509/0.2845, allocations: 261.5 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.2847, allocations: 0.6924 MB / 1.033 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.411e-05/0.2848, allocations: 4.672 kB / 1.033 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.694e-05/0.2848, allocations: 15.44 kB / 1.033 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of SimCode: time 3.1e-07/0.2848, allocations: 0 / 1.033 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of Templates: time 0.00336/0.2882, allocations: 1.077 MB / 1.034 GB, free: 9.758 MB / 0.8106 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 -s gbode -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","/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) Reference file matches