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.001039/0.001038, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 185.1 kB / 16.92 MB, free: 6.723 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.423/1.423, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.723/2.723, allocations: 443.2 MB / 0.7181 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003622/0.0003622, allocations: 11.69 kB / 0.8801 GB, free: 42.22 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.303, allocations: 155.1 MB / 1.032 GB, free: 4.75 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001947/0.305, allocations: 1.295 MB / 1.033 GB, free: 3.441 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.000686/0.3057, allocations: 451.2 kB / 1.033 GB, free: 2.996 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.807e-05/0.3057, allocations: 0 / 1.033 GB, free: 2.996 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.614e-05/0.3058, allocations: 4 kB / 1.033 GB, free: 2.992 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.746e-05/0.3058, allocations: 11.92 kB / 1.033 GB, free: 2.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000191/0.306, allocations: 31.91 kB / 1.033 GB, free: 2.949 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.331e-05/0.3061, allocations: 67.77 kB / 1.033 GB, free: 2.883 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.506e-05/0.3062, allocations: 8 kB / 1.033 GB, free: 2.875 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.757e-05/0.3063, allocations: 27.92 kB / 1.033 GB, free: 2.848 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.653e-05/0.3064, allocations: 31.89 kB / 1.033 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.974e-05/0.3065, allocations: 4 kB / 1.033 GB, free: 2.812 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.204e-05/0.3065, allocations: 0 / 1.033 GB, free: 2.812 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.795e-05/0.3065, allocations: 15.92 kB / 1.034 GB, free: 2.797 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.794e-05/0.3066, allocations: 49.62 kB / 1.034 GB, free: 2.742 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.652e-05/0.3067, allocations: 48.11 kB / 1.034 GB, free: 2.695 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3067, allocations: 3.938 kB / 1.034 GB, free: 2.691 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3067, allocations: 0 / 1.034 GB, free: 2.691 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.575e-06/0.3067, allocations: 0 / 1.034 GB, free: 2.691 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.0005413/0.3073, allocations: 367.4 kB / 1.034 GB, free: 2.285 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.3073, allocations: 8.031 kB / 1.034 GB, free: 2.277 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.277e-05/0.3073, allocations: 12.84 kB / 1.034 GB, free: 2.266 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.3075, allocations: 168.3 kB / 1.034 GB, free: 2.062 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.736e-05/0.3075, allocations: 384 / 1.034 GB, free: 2.062 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.918e-05/0.3075, allocations: 12.36 kB / 1.034 GB, free: 2.051 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001944/0.3077, allocations: 85.95 kB / 1.034 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.3078, allocations: 4 kB / 1.034 GB, free: 1.957 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.3078, allocations: 4 kB / 1.034 GB, free: 1.953 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.3078, allocations: 3.938 kB / 1.034 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001354/0.3079, allocations: 51.91 kB / 1.034 GB, free: 1.898 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005301/0.3085, allocations: 324.6 kB / 1.035 GB, free: 1.531 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002556/0.3087, allocations: 98.53 kB / 1.035 GB, free: 1.426 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.3088, allocations: 48.84 kB / 1.035 GB, free: 1.375 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.776e-05/0.3089, allocations: 0 / 1.035 GB, free: 1.375 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002778/0.3091, allocations: 123.5 kB / 1.035 GB, free: 1.242 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.422e-06/0.3092, allocations: 0 / 1.035 GB, free: 1.242 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0003983/0.3096, allocations: 177.5 kB / 1.035 GB, free: 1.062 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.096e-05/0.3096, allocations: 55.41 kB / 1.035 GB, free: 0.9961 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.679e-05/0.3097, allocations: 109.8 kB / 1.035 GB, free: 0.8789 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.3097, allocations: 29.7 kB / 1.035 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.51e-05/0.3098, allocations: 92.36 kB / 1.035 GB, free: 0.75 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.221e-05/0.3098, allocations: 23.62 kB / 1.035 GB, free: 0.7266 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.277e-05/0.3098, allocations: 21.7 kB / 1.035 GB, free: 0.6992 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.31, allocations: 318.8 kB / 1.036 GB, free: 388 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.608e-05/0.31, allocations: 35.92 kB / 1.036 GB, free: 352 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.701e-05/0.3101, allocations: 57.19 kB / 1.036 GB, free: 292 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001413/0.3103, allocations: 69.69 kB / 1.036 GB, free: 216 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3103, allocations: 0 / 1.036 GB, free: 216 kB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002193/0.3105, allocations: 121.4 kB / 1.036 GB, free: 88 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.3105, allocations: 8 kB / 1.036 GB, free: 80 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.3106, allocations: 4 kB / 1.036 GB, free: 76 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.027e-05/0.3106, allocations: 0 / 1.036 GB, free: 76 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.009e-05/0.3106, allocations: 8 kB / 1.036 GB, free: 68 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.3107, allocations: 7.938 kB / 1.036 GB, free: 60 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.086e-05/0.3107, allocations: 15.92 kB / 1.036 GB, free: 44 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.3108, allocations: 4 kB / 1.036 GB, free: 40 kB / 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 ($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.0001044/0.3109, allocations: 127.3 kB / 1.036 GB, free: 15.91 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.592e-05/0.3109, allocations: 7.906 kB / 1.036 GB, free: 15.9 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.458e-05/0.3109, allocations: 16.38 kB / 1.036 GB, free: 15.88 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.3109, allocations: 0 / 1.036 GB, free: 15.88 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.311, allocations: 0 / 1.036 GB, free: 15.88 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.311, allocations: 0 / 1.036 GB, free: 15.88 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001495/0.3111, allocations: 197.5 kB / 1.036 GB, free: 15.64 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.3111, allocations: 3.984 kB / 1.036 GB, free: 15.64 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.428e-05/0.3112, allocations: 8 kB / 1.036 GB, free: 15.63 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.3112, allocations: 4 kB / 1.036 GB, free: 15.62 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.3113, allocations: 11.92 kB / 1.036 GB, free: 15.61 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3113, allocations: 0 / 1.036 GB, free: 15.61 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3113, allocations: 3.938 kB / 1.036 GB, free: 15.61 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003723/0.3116, allocations: 221.5 kB / 1.037 GB, free: 15.38 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.306e-05/0.3117, allocations: 85.05 kB / 1.037 GB, free: 15.27 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.785e-05/0.3117, allocations: 16.05 kB / 1.037 GB, free: 15.26 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.855e-05/0.3118, allocations: 4 kB / 1.037 GB, free: 15.25 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.58e-05/0.3119, allocations: 19.97 kB / 1.037 GB, free: 15.23 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.3119, allocations: 4 kB / 1.037 GB, free: 15.23 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.579e-05/0.3119, allocations: 91.56 kB / 1.037 GB, free: 15.14 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3119, allocations: 3.938 kB / 1.037 GB, free: 15.14 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0001942/0.3121, allocations: 16 kB / 1.037 GB, free: 15.12 MB / 0.795 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.0001299/0.3123, allocations: 115.2 kB / 1.037 GB, free: 15 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002226/0.3125, allocations: 91.84 kB / 1.037 GB, free: 14.91 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3125, allocations: 0 / 1.037 GB, free: 14.91 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.3126, allocations: 71.91 kB / 1.037 GB, free: 14.84 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000208/0.3129, allocations: 17.3 kB / 1.037 GB, free: 14.82 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005291/0.3134, allocations: 331.2 kB / 1.037 GB, free: 14.46 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002246/0.3136, allocations: 0.6926 MB / 1.038 GB, free: 13.75 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.846e-05/0.3137, allocations: 11.44 kB / 1.038 GB, free: 13.74 MB / 0.795 GB Notification: Performance of SimCode: time 3.81e-07/0.3137, allocations: 0 / 1.038 GB, free: 13.74 MB / 0.795 GB Notification: Performance of Templates: time 0.002691/0.3164, allocations: 1.114 MB / 1.039 GB, free: 12.62 MB / 0.795 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/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