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.001141/0.001141, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001201/0.001202, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.327/1.327, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.646/2.646, allocations: 469.4 MB / 0.7427 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 57.97 kB / 0.9088 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.295, allocations: 159.1 MB / 1.064 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002865/0.2979, allocations: 1.564 MB / 1.066 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007547/0.2987, allocations: 443 kB / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.13e-05/0.2988, allocations: 0 / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.221e-05/0.2988, allocations: 7.922 kB / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.378e-05/0.2989, allocations: 11.94 kB / 1.066 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002072/0.2991, allocations: 27.91 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001046/0.2992, allocations: 75.77 kB / 1.066 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.2994, allocations: 8 kB / 1.066 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.2995, allocations: 31.91 kB / 1.066 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.18e-05/0.2996, allocations: 35.83 kB / 1.066 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.395e-05/0.2996, allocations: 12 kB / 1.066 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.557e-05/0.2996, allocations: 4 kB / 1.066 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.71e-05/0.2996, allocations: 15.94 kB / 1.066 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.725e-05/0.2997, allocations: 31.86 kB / 1.066 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.2998, allocations: 64.11 kB / 1.066 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2998, allocations: 0 / 1.066 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.363e-06/0.2998, allocations: 0 / 1.066 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.691e-06/0.2998, allocations: 0 / 1.066 GB, free: 12.69 MB / 0.8419 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.0005909/0.3004, allocations: 383.2 kB / 1.067 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.3005, allocations: 12.03 kB / 1.067 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.118e-05/0.3005, allocations: 8.922 kB / 1.067 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.3007, allocations: 168.3 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.3007, allocations: 4.375 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.528e-05/0.3007, allocations: 4.375 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.3009, allocations: 93.83 kB / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.3009, allocations: 4 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.301, allocations: 0 / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.301, allocations: 0 / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001299/0.3011, allocations: 47.97 kB / 1.067 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005517/0.3017, allocations: 328.6 kB / 1.068 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002643/0.3019, allocations: 98.58 kB / 1.068 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.295e-05/0.302, allocations: 48.84 kB / 1.068 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/0.3021, allocations: 0 / 1.068 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.3023, allocations: 119.2 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=11): time 1.312e-06/0.3024, allocations: 0 / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.000395/0.3028, allocations: 173.5 kB / 1.068 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.3028, allocations: 55.41 kB / 1.068 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.49e-05/0.3029, allocations: 109.8 kB / 1.068 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.3029, allocations: 37.69 kB / 1.068 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 3.798e-05/0.303, allocations: 84.38 kB / 1.068 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.047e-05/0.303, allocations: 19.72 kB / 1.068 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.895e-05/0.3031, allocations: 33.7 kB / 1.068 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001025/0.3032, allocations: 322.8 kB / 1.069 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.579e-05/0.3032, allocations: 31.98 kB / 1.069 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.164e-05/0.3033, allocations: 47.58 kB / 1.069 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001353/0.3035, allocations: 74 kB / 1.069 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3035, allocations: 0 / 1.069 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002062/0.3037, allocations: 113.5 kB / 1.069 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.3037, allocations: 6.031 kB / 1.069 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.3037, allocations: 4 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.3037, allocations: 4 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.441e-05/0.3038, allocations: 11.98 kB / 1.069 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.3038, allocations: 0 / 1.069 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.594e-05/0.3039, allocations: 19.83 kB / 1.069 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.3039, allocations: 4 kB / 1.069 GB, free: 10.04 MB / 0.8419 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.000108/0.3041, allocations: 121.7 kB / 1.069 GB, free: 9.906 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.909e-05/0.3041, allocations: 7.906 kB / 1.069 GB, free: 9.898 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.067e-05/0.3041, allocations: 20.38 kB / 1.069 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3041, allocations: 0 / 1.069 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3041, allocations: 0 / 1.069 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.3042, allocations: 3.984 kB / 1.069 GB, free: 9.875 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001626/0.3043, allocations: 201.8 kB / 1.069 GB, free: 9.629 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.3043, allocations: 3.984 kB / 1.069 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.639e-05/0.3044, allocations: 7.984 kB / 1.069 GB, free: 9.617 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.3044, allocations: 7.938 kB / 1.069 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.3044, allocations: 0 / 1.069 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3044, allocations: 0 / 1.069 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3045, allocations: 4 kB / 1.069 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003798/0.3048, allocations: 224.8 kB / 1.069 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.723e-05/0.3049, allocations: 77.11 kB / 1.07 GB, free: 9.273 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.805e-05/0.3049, allocations: 8.031 kB / 1.07 GB, free: 9.266 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.4e-05/0.305, allocations: 7.984 kB / 1.07 GB, free: 9.258 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.08e-05/0.3051, allocations: 11.98 kB / 1.07 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.3051, allocations: 8.047 kB / 1.07 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.357e-05/0.3051, allocations: 91.28 kB / 1.07 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3051, allocations: 0 / 1.07 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002125/0.3054, allocations: 20 kB / 1.07 GB, free: 9.129 MB / 0.8419 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.0001366/0.3055, allocations: 106.2 kB / 1.07 GB, free: 9.02 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002464/0.3058, allocations: 99.77 kB / 1.07 GB, free: 8.922 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3058, allocations: 0 / 1.07 GB, free: 8.922 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.3059, allocations: 67.92 kB / 1.07 GB, free: 8.855 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002461/0.3062, allocations: 17.88 kB / 1.07 GB, free: 8.84 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005675/0.3067, allocations: 287.2 kB / 1.07 GB, free: 8.527 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002395/0.307, allocations: 0.6924 MB / 1.071 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.205e-05/0.307, allocations: 11.44 kB / 1.071 GB, free: 7.797 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.307, allocations: 0 / 1.071 GB, free: 7.797 MB / 0.8419 GB Notification: Performance of Templates: time 0.002851/0.3099, allocations: 1.134 MB / 1.072 GB, free: 6.668 MB / 0.8419 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