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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.00868/0.008681, allocations: 101.8 kB / 15.73 MB, free: 6.031 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.002614/0.002615, allocations: 197 kB / 16.67 MB, free: 5.969 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.489/2.489, allocations: 390.2 MB / 0.6648 GB, free: 260 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 66.89 kB / 0.9509 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2925, allocations: 140.4 MB / 1.088 GB, free: 1.52 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002742/0.2953, allocations: 1.562 MB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007821/0.2961, allocations: 444.4 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.176e-05/0.2962, allocations: 0 / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.144e-05/0.2962, allocations: 11.88 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.554e-05/0.2963, allocations: 7.938 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002458/0.2966, allocations: 35.89 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001143/0.2967, allocations: 71.77 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.2968, allocations: 15.98 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.2969, allocations: 31.91 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.743e-05/0.297, allocations: 31.91 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.299e-05/0.2971, allocations: 8 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.449e-05/0.2971, allocations: 4 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.408e-05/0.2971, allocations: 19.92 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.685e-05/0.2972, allocations: 31.84 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.2973, allocations: 67.72 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2973, allocations: 0 / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.502e-06/0.2973, allocations: 0 / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.2973, allocations: 0 / 1.09 GB, free: 15.17 MB / 0.8575 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.0005786/0.2979, allocations: 371.4 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.298, allocations: 12.03 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.031e-05/0.298, allocations: 8.844 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.2981, allocations: 176.2 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.676e-05/0.2982, allocations: 8.359 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.962e-05/0.2982, allocations: 16.36 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.2984, allocations: 89.89 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.2984, allocations: 0 / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.2984, allocations: 0 / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.2984, allocations: 4 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001308/0.2986, allocations: 43.97 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005302/0.2991, allocations: 312.7 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002597/0.2994, allocations: 106.6 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.219e-05/0.2995, allocations: 44.84 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.2995, allocations: 4 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002421/0.2998, allocations: 111.2 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.714e-06/0.2998, allocations: 0 / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0003985/0.3002, allocations: 181.8 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.3002, allocations: 51.41 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.84e-05/0.3003, allocations: 113.8 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.3003, allocations: 29.7 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.996e-05/0.3004, allocations: 88.45 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.613e-05/0.3004, allocations: 31.64 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.705e-05/0.3005, allocations: 33.7 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.229e-05/0.3006, allocations: 314.8 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.872e-05/0.3007, allocations: 35.98 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.218e-05/0.3008, allocations: 45.69 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/0.3009, allocations: 73.69 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3009, allocations: 0 / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002055/0.3011, allocations: 113.5 kB / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.3011, allocations: 7.938 kB / 1.093 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.84e-06/0.3012, allocations: 4 kB / 1.093 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.3012, allocations: 4 kB / 1.093 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.255e-05/0.3013, allocations: 8 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.3013, allocations: 3.984 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.415e-05/0.3013, allocations: 7.906 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.3014, allocations: 8 kB / 1.093 GB, free: 12.52 MB / 0.8575 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 8.888e-05/0.3015, allocations: 121.8 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.678e-05/0.3015, allocations: 11.94 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.829e-05/0.3015, allocations: 12.38 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.3015, allocations: 0 / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3015, allocations: 0 / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.3015, allocations: 0 / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001485/0.3017, allocations: 209.4 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3017, allocations: 0 / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.39e-05/0.3018, allocations: 8 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3018, allocations: 48 / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.3018, allocations: 11.97 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.3018, allocations: 0 / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3018, allocations: 4 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003747/0.3022, allocations: 224.8 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.23e-05/0.3023, allocations: 77.11 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.382e-05/0.3023, allocations: 8.016 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.274e-05/0.3024, allocations: 11.98 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.185e-05/0.3024, allocations: 7.984 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/0.3025, allocations: 8 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.102e-05/0.3025, allocations: 95.64 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3025, allocations: 0 / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002052/0.3027, allocations: 19.94 kB / 1.093 GB, free: 11.61 MB / 0.8575 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.0001256/0.3028, allocations: 108.9 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002304/0.3031, allocations: 91.78 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3031, allocations: 0 / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.3032, allocations: 67.97 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002043/0.3034, allocations: 21.34 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005039/0.3039, allocations: 254.3 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/0.3042, allocations: 0.6885 MB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.711e-05/0.3042, allocations: 8.656 kB / 1.095 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.622e-05/0.3043, allocations: 15.44 kB / 1.095 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of SimCode: time 3.2e-07/0.3043, allocations: 0 / 1.095 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of Templates: time 0.003551/0.3078, allocations: 1.119 MB / 1.096 GB, free: 9.195 MB / 0.8575 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 -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/jenkins/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