Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.0009771/0.0009771, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001332/0.001332, allocations: 172.7 kB / 15.95 MB, free: 208 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.421/1.421, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.576/2.576, allocations: 437.7 MB / 0.7117 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003086/0.0003086, allocations: 12 kB / 0.8722 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5923/0.5926, allocations: 153.8 MB / 1.022 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001695/0.5943, allocations: 1.272 MB / 1.024 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0006407/0.595, allocations: 419.4 kB / 1.024 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.687e-05/0.595, allocations: 0 / 1.024 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.937e-05/0.5951, allocations: 3.938 kB / 1.024 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.04e-05/0.5951, allocations: 7.938 kB / 1.024 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.00018/0.5953, allocations: 27.97 kB / 1.024 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.293e-05/0.5954, allocations: 67.77 kB / 1.024 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.738e-05/0.5955, allocations: 7.984 kB / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.723e-05/0.5956, allocations: 23.92 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.721e-05/0.5957, allocations: 35.89 kB / 1.024 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.572e-05/0.5957, allocations: 0 / 1.024 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.24e-05/0.5957, allocations: 11.94 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.183e-05/0.5958, allocations: 15.92 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.955e-05/0.5958, allocations: 29.7 kB / 1.024 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.82e-05/0.5959, allocations: 45.88 kB / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.5959, allocations: 0 / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.994e-06/0.5959, allocations: 0 / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.968e-06/0.5959, allocations: 0 / 1.024 GB, free: 14.07 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.0004699/0.5964, allocations: 363.1 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.5965, allocations: 12.03 kB / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.572e-05/0.5965, allocations: 7.906 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.5966, allocations: 178.9 kB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.697e-05/0.5966, allocations: 4 kB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.948e-05/0.5967, allocations: 8 kB / 1.025 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/0.5969, allocations: 85.59 kB / 1.025 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.5969, allocations: 0 / 1.025 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.5969, allocations: 11.98 kB / 1.025 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.5969, allocations: 0 / 1.025 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001314/0.5971, allocations: 51.91 kB / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005267/0.5976, allocations: 312.8 kB / 1.025 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002488/0.5979, allocations: 106.5 kB / 1.025 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.246e-05/0.598, allocations: 44.84 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.598, allocations: 0 / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002445/0.5983, allocations: 123.3 kB / 1.026 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.723e-06/0.5983, allocations: 0 / 1.026 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0003839/0.5987, allocations: 185.3 kB / 1.026 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.5987, allocations: 55.39 kB / 1.026 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.554e-05/0.5988, allocations: 117.8 kB / 1.026 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.5988, allocations: 25.7 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.001e-05/0.5989, allocations: 88.38 kB / 1.026 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.22e-05/0.5989, allocations: 35.69 kB / 1.026 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.351e-05/0.5989, allocations: 8 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.869e-05/0.599, allocations: 318.8 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.631e-05/0.5991, allocations: 27.98 kB / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.363e-05/0.5992, allocations: 53.69 kB / 1.026 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.402e-05/0.5993, allocations: 35.89 kB / 1.026 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.5993, allocations: 0 / 1.026 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002107/0.5995, allocations: 113.6 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.5995, allocations: 4 kB / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.5995, allocations: 0 / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.5995, allocations: 4 kB / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.978e-05/0.5996, allocations: 11.98 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.5996, allocations: 4 kB / 1.027 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.787e-05/0.5997, allocations: 11.91 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.5997, allocations: 8 kB / 1.027 GB, free: 11.47 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.863e-05/0.5998, allocations: 131.4 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.535e-05/0.5999, allocations: 7.906 kB / 1.027 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.961e-05/0.5999, allocations: 8.375 kB / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.5999, allocations: 4 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.5999, allocations: 4 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.5999, allocations: 0 / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001416/0.6001, allocations: 197.5 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.6001, allocations: 7.891 kB / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.472e-05/0.6002, allocations: 8 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.6002, allocations: 48 / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.6002, allocations: 15.97 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.6002, allocations: 0 / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.6002, allocations: 0 / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003553/0.6006, allocations: 216.9 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.358e-05/0.6006, allocations: 89.08 kB / 1.027 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/0.6006, allocations: 4 kB / 1.027 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.063e-05/0.6007, allocations: 11.98 kB / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.03e-05/0.6008, allocations: 11.92 kB / 1.027 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.6008, allocations: 16.05 kB / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.812e-05/0.6008, allocations: 87.27 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6008, allocations: 0 / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002099/0.6011, allocations: 23.91 kB / 1.027 GB, free: 10.55 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.0001031/0.6012, allocations: 111.2 kB / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002137/0.6014, allocations: 87.89 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.6014, allocations: 8 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.6015, allocations: 64.8 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001952/0.6017, allocations: 14.52 kB / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004562/0.6022, allocations: 302.8 kB / 1.028 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000188/0.6024, allocations: 0.6848 MB / 1.029 GB, free: 9.227 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.156e-05/0.6025, allocations: 12.66 kB / 1.029 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.309e-05/0.6025, allocations: 11.44 kB / 1.029 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.6025, allocations: 0 / 1.029 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of Templates: time 0.003125/0.6056, allocations: 0.9069 MB / 1.03 GB, free: 8.301 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches