Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001414/0.001414, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001565/0.001565, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.412/1.412, 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 9.1.2-maint.9.1.x/package.mo): time 2.285/2.285, allocations: 390.3 MB / 0.6655 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001277, allocations: 67.2 kB / 0.814 GB, free: 32.73 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2959, allocations: 140.4 MB / 0.9511 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002902/0.2989, allocations: 1.563 MB / 0.9527 GB, free: 6.52 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.000718/0.2996, allocations: 454.9 kB / 0.9531 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.916e-05/0.2997, allocations: 0 / 0.9531 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.009e-05/0.2997, allocations: 3.938 kB / 0.9531 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.147e-05/0.2998, allocations: 7.875 kB / 0.9531 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002068/0.3, allocations: 31.95 kB / 0.9531 GB, free: 6.027 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001019/0.3001, allocations: 75.72 kB / 0.9532 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.3002, allocations: 15.89 kB / 0.9532 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.3003, allocations: 31.91 kB / 0.9533 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.58e-05/0.3004, allocations: 31.91 kB / 0.9533 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.861e-05/0.3004, allocations: 4 kB / 0.9533 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.451e-05/0.3005, allocations: 8 kB / 0.9533 GB, free: 5.863 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.934e-05/0.3005, allocations: 19.92 kB / 0.9533 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.058e-05/0.3006, allocations: 35.84 kB / 0.9534 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001091/0.3007, allocations: 55.84 kB / 0.9534 GB, free: 5.754 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3007, allocations: 4 kB / 0.9534 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3007, allocations: 0 / 0.9534 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.3007, allocations: 0 / 0.9534 GB, free: 5.75 MB / 0.7325 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.0005715/0.3013, allocations: 376.2 kB / 0.9538 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.3013, allocations: 8.031 kB / 0.9538 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.349e-05/0.3014, allocations: 12.83 kB / 0.9538 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.3015, allocations: 180.2 kB / 0.954 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.3015, allocations: 8.312 kB / 0.954 GB, free: 5.094 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.755e-05/0.3016, allocations: 12.36 kB / 0.954 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000185/0.3017, allocations: 85.95 kB / 0.9541 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.3018, allocations: 0 / 0.9541 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.3018, allocations: 0 / 0.9541 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.3018, allocations: 4 kB / 0.9541 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001292/0.3019, allocations: 47.91 kB / 0.9541 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005216/0.3025, allocations: 316.7 kB / 0.9544 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002652/0.3027, allocations: 102.5 kB / 0.9545 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.033e-05/0.3028, allocations: 40.94 kB / 0.9546 GB, free: 4.43 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.3029, allocations: 7.938 kB / 0.9546 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002382/0.3031, allocations: 111.3 kB / 0.9547 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.453e-06/0.3031, allocations: 0 / 0.9547 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0003771/0.3035, allocations: 173.5 kB / 0.9548 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.3035, allocations: 55.41 kB / 0.9549 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.603e-05/0.3036, allocations: 113.7 kB / 0.955 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.3037, allocations: 29.7 kB / 0.955 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.827e-05/0.3037, allocations: 96.28 kB / 0.9551 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.637e-05/0.3038, allocations: 27.84 kB / 0.9551 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.794e-05/0.3038, allocations: 29.7 kB / 0.9552 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.3039, allocations: 322.8 kB / 0.9555 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.788e-05/0.304, allocations: 27.98 kB / 0.9555 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.44e-05/0.3041, allocations: 49.69 kB / 0.9555 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/0.3043, allocations: 66.08 kB / 0.9556 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.3043, allocations: 0 / 0.9556 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002054/0.3045, allocations: 117.4 kB / 0.9557 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.3045, allocations: 8 kB / 0.9557 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.3045, allocations: 0 / 0.9557 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.3045, allocations: 0 / 0.9557 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.462e-05/0.3046, allocations: 15.94 kB / 0.9557 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.3046, allocations: 0 / 0.9557 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.477e-05/0.3047, allocations: 15.92 kB / 0.9558 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.3047, allocations: 8 kB / 0.9558 GB, free: 3.094 MB / 0.7325 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.45e-05/0.3048, allocations: 123.7 kB / 0.9559 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.635e-05/0.3049, allocations: 7.906 kB / 0.9559 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.469e-05/0.3049, allocations: 12.38 kB / 0.9559 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.3049, allocations: 4 kB / 0.9559 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3049, allocations: 0 / 0.9559 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.3049, allocations: 0 / 0.9559 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001651/0.3051, allocations: 193.5 kB / 0.9561 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.3051, allocations: 11.97 kB / 0.9561 GB, free: 2.688 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.036e-05/0.3052, allocations: 19.94 kB / 0.9561 GB, free: 2.668 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.155e-06/0.3052, allocations: 0 / 0.9561 GB, free: 2.668 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.3052, allocations: 7.984 kB / 0.9561 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.3052, allocations: 0 / 0.9561 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3052, allocations: 0 / 0.9561 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003694/0.3056, allocations: 208.9 kB / 0.9563 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.143e-05/0.3057, allocations: 85.05 kB / 0.9564 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.581e-05/0.3057, allocations: 12.05 kB / 0.9564 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.88e-05/0.3058, allocations: 4 kB / 0.9564 GB, free: 2.32 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.946e-05/0.3058, allocations: 19.97 kB / 0.9564 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.3059, allocations: 4 kB / 0.9565 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.235e-05/0.3059, allocations: 87.27 kB / 0.9565 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3059, allocations: 0 / 0.9565 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001993/0.3061, allocations: 16 kB / 0.9566 GB, free: 2.195 MB / 0.7325 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.0001335/0.3063, allocations: 115.2 kB / 0.9567 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002378/0.3065, allocations: 87.84 kB / 0.9567 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3065, allocations: 3.938 kB / 0.9567 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001221/0.3066, allocations: 75.89 kB / 0.9568 GB, free: 1.906 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002003/0.3069, allocations: 14.25 kB / 0.9568 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000517/0.3074, allocations: 253.5 kB / 0.9571 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.3077, allocations: 0.6961 MB / 0.9578 GB, free: 0.8984 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.737e-05/0.3077, allocations: 12.66 kB / 0.9578 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.742e-05/0.3078, allocations: 15.44 kB / 0.9578 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.3078, allocations: 0 / 0.9578 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of Templates: time 0.003731/0.3115, allocations: 1.067 MB / 0.9588 GB, free: 15.81 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches