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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.008493/0.008493, allocations: 98.67 kB / 15.73 MB, free: 6.039 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.00181/0.00181, allocations: 202.7 kB / 16.68 MB, free: 5.965 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.494/1.494, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.602/2.602, allocations: 461.9 MB / 0.7348 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 63.91 kB / 1.054 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9386/0.9401, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002768/0.943, allocations: 1.556 MB / 1.209 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007589/0.9437, allocations: 443 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.942e-05/0.9438, allocations: 0 / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.229e-05/0.9439, allocations: 7.875 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.846e-05/0.9439, allocations: 11.88 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002147/0.9442, allocations: 31.89 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001168/0.9443, allocations: 71.78 kB / 1.21 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.9444, allocations: 15.98 kB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.9445, allocations: 39.91 kB / 1.21 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.054e-05/0.9446, allocations: 27.91 kB / 1.21 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.9447, allocations: 8 kB / 1.21 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.501e-05/0.9447, allocations: 4 kB / 1.21 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.205e-05/0.9447, allocations: 15.92 kB / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 8.415e-05/0.9448, allocations: 35.84 kB / 1.21 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001263/0.945, allocations: 55.84 kB / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.945, allocations: 7.938 kB / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.164e-06/0.945, allocations: 0 / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.868e-06/0.945, allocations: 0 / 1.21 GB, free: 11.27 MB / 0.9356 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.000582/0.9456, allocations: 376.9 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.9456, allocations: 16.02 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.703e-05/0.9457, allocations: 4.938 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.9458, allocations: 172.2 kB / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.9458, allocations: 4.375 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.839e-05/0.9459, allocations: 8.375 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001893/0.9461, allocations: 89.94 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.9461, allocations: 3.984 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.9461, allocations: 4 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.9461, allocations: 3.938 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001324/0.9462, allocations: 47.97 kB / 1.211 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005546/0.9468, allocations: 320.7 kB / 1.211 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000275/0.9471, allocations: 102.6 kB / 1.211 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.625e-05/0.9472, allocations: 44.84 kB / 1.211 GB, free: 9.945 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.796e-05/0.9472, allocations: 0 / 1.211 GB, free: 9.945 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002608/0.9475, allocations: 119.3 kB / 1.211 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.283e-06/0.9475, allocations: 0 / 1.211 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.000394/0.9479, allocations: 169.5 kB / 1.211 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/0.948, allocations: 59.34 kB / 1.211 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.195e-05/0.948, allocations: 110 kB / 1.212 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.9481, allocations: 33.7 kB / 1.212 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.885e-05/0.9481, allocations: 96.3 kB / 1.212 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.362e-05/0.9481, allocations: 31.55 kB / 1.212 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.901e-05/0.9482, allocations: 29.7 kB / 1.212 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.9483, allocations: 322.8 kB / 1.212 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.271e-05/0.9484, allocations: 27.98 kB / 1.212 GB, free: 8.902 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.372e-05/0.9485, allocations: 49.69 kB / 1.212 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001399/0.9487, allocations: 69.64 kB / 1.212 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.9487, allocations: 0 / 1.212 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002179/0.9489, allocations: 109.5 kB / 1.212 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.9489, allocations: 7.984 kB / 1.212 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.9489, allocations: 0 / 1.212 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.9489, allocations: 4 kB / 1.212 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.474e-05/0.949, allocations: 11.94 kB / 1.212 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.949, allocations: 0 / 1.212 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.952e-05/0.9491, allocations: 11.98 kB / 1.212 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.9491, allocations: 8 kB / 1.212 GB, free: 8.617 MB / 0.9356 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.998e-05/0.9492, allocations: 121.5 kB / 1.212 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.807e-05/0.9493, allocations: 11.89 kB / 1.212 GB, free: 8.48 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.19e-05/0.9493, allocations: 16.38 kB / 1.213 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.9493, allocations: 0 / 1.213 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.9493, allocations: 0 / 1.213 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.9493, allocations: 0 / 1.213 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001728/0.9495, allocations: 201.5 kB / 1.213 GB, free: 8.215 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.9495, allocations: 4 kB / 1.213 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.583e-05/0.9496, allocations: 15.92 kB / 1.213 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.905e-06/0.9496, allocations: 4 kB / 1.213 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.9496, allocations: 3.938 kB / 1.213 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.9496, allocations: 0 / 1.213 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.9497, allocations: 3.984 kB / 1.213 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003735/0.95, allocations: 213.5 kB / 1.213 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.005e-05/0.9501, allocations: 81.02 kB / 1.213 GB, free: 7.859 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.639e-05/0.9501, allocations: 20.12 kB / 1.213 GB, free: 7.84 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.811e-05/0.9502, allocations: 7.984 kB / 1.213 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.741e-05/0.9503, allocations: 15.97 kB / 1.213 GB, free: 7.816 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.9503, allocations: 4 kB / 1.213 GB, free: 7.812 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.598e-05/0.9503, allocations: 91.27 kB / 1.213 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9503, allocations: 7.875 kB / 1.213 GB, free: 7.715 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002034/0.9506, allocations: 20 kB / 1.213 GB, free: 7.695 MB / 0.9356 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.0001325/0.9507, allocations: 103.2 kB / 1.213 GB, free: 7.586 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000254/0.951, allocations: 99.88 kB / 1.213 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.951, allocations: 0 / 1.213 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.9511, allocations: 63.97 kB / 1.213 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002112/0.9513, allocations: 17.98 kB / 1.213 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005299/0.9518, allocations: 257.4 kB / 1.214 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.9521, allocations: 0.6885 MB / 1.214 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.859e-05/0.9522, allocations: 16.73 kB / 1.214 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.612e-05/0.9522, allocations: 11.44 kB / 1.214 GB, free: 6.391 MB / 0.9356 GB Notification: Performance of SimCode: time 1.402e-06/0.9522, allocations: 0 / 1.214 GB, free: 6.391 MB / 0.9356 GB Notification: Performance of Templates: time 0.003639/0.9559, allocations: 1.109 MB / 1.215 GB, free: 5.281 MB / 0.9356 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","/var/lib/jenkins/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