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.001613/0.001613, allocations: 109.3 kB / 16.37 MB, free: 6.48 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.001857/0.001857, allocations: 195.8 kB / 17.31 MB, free: 5.824 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.401/1.401, 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 11.0.0-master/package.mo): time 2.528/2.528, allocations: 442.6 MB / 0.7165 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.16 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3026, allocations: 153 MB / 1.027 GB, free: 2.07 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.00319/0.3058, allocations: 1.576 MB / 1.028 GB, free: 496 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007608/0.3066, allocations: 462.6 kB / 1.029 GB, free: 28 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.768e-05/0.3066, allocations: 0 / 1.029 GB, free: 28 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.434e-05/0.3067, allocations: 3.938 kB / 1.029 GB, free: 24 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.036e-05/0.3068, allocations: 7.938 kB / 1.029 GB, free: 16 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000238/0.307, allocations: 40 kB / 1.029 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.918e-05/0.3071, allocations: 67.83 kB / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.3072, allocations: 8 kB / 1.029 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001137/0.3074, allocations: 35.8 kB / 1.029 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.352e-05/0.3075, allocations: 31.84 kB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.042e-05/0.3075, allocations: 4 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.437e-05/0.3075, allocations: 12 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.365e-05/0.3075, allocations: 19.97 kB / 1.029 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.629e-05/0.3076, allocations: 27.86 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001402/0.3078, allocations: 63.7 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3078, allocations: 0 / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.464e-06/0.3078, allocations: 4 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.201e-05/0.3078, allocations: 0 / 1.029 GB, free: 15.71 MB / 0.8106 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.0006651/0.3085, allocations: 375.3 kB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.3085, allocations: 12.03 kB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.229e-05/0.3086, allocations: 12.84 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.3087, allocations: 164.3 kB / 1.03 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.401e-05/0.3088, allocations: 4.375 kB / 1.03 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.256e-05/0.3088, allocations: 12.36 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/0.309, allocations: 85.89 kB / 1.03 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.3091, allocations: 0 / 1.03 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.3091, allocations: 4 kB / 1.03 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.3091, allocations: 0 / 1.03 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.3092, allocations: 47.91 kB / 1.03 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005984/0.3099, allocations: 320.7 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002693/0.3101, allocations: 106.6 kB / 1.03 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.215e-05/0.3102, allocations: 44.84 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.3103, allocations: 0 / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003031/0.3106, allocations: 123.2 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.502e-06/0.3106, allocations: 0 / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0003856/0.311, allocations: 165.9 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.311, allocations: 55.56 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.654e-05/0.3111, allocations: 121.7 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.323e-05/0.3112, allocations: 29.7 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.984e-05/0.3112, allocations: 88.36 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.427e-05/0.3113, allocations: 19.72 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-05/0.3113, allocations: 29.7 kB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.3115, allocations: 322.8 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.492e-05/0.3115, allocations: 31.97 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.779e-05/0.3116, allocations: 49.7 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001246/0.3118, allocations: 69.62 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.3118, allocations: 4 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002065/0.312, allocations: 113.5 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.312, allocations: 4 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.312, allocations: 0 / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.312, allocations: 0 / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.972e-05/0.3121, allocations: 23.92 kB / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.78e-06/0.3121, allocations: 4 kB / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.352e-05/0.3122, allocations: 11.84 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.3122, allocations: 4 kB / 1.031 GB, free: 13.06 MB / 0.8106 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.000119/0.3124, allocations: 129.7 kB / 1.032 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.726e-05/0.3124, allocations: 4 kB / 1.032 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.083e-05/0.3124, allocations: 16.31 kB / 1.032 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.3124, allocations: 0 / 1.032 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.3124, allocations: 4 kB / 1.032 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3125, allocations: 3.938 kB / 1.032 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.3126, allocations: 205.4 kB / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3126, allocations: 0 / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.22e-05/0.3127, allocations: 8 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.3127, allocations: 0 / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.3127, allocations: 7.984 kB / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3128, allocations: 0 / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3128, allocations: 0 / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003617/0.3131, allocations: 216.8 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.739e-05/0.3132, allocations: 85.08 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.812e-05/0.3132, allocations: 11.98 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.741e-05/0.3133, allocations: 7.984 kB / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.923e-05/0.3133, allocations: 15.92 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.198e-05/0.3134, allocations: 8 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.828e-05/0.3134, allocations: 95.56 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3134, allocations: 64 / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001983/0.3136, allocations: 20 kB / 1.032 GB, free: 12.14 MB / 0.8106 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.0001395/0.3138, allocations: 110.7 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002319/0.314, allocations: 87.84 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.314, allocations: 4 kB / 1.032 GB, free: 11.94 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.3141, allocations: 63.97 kB / 1.032 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002022/0.3144, allocations: 15.98 kB / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005381/0.3149, allocations: 262.1 kB / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003949/0.3153, allocations: 0.6885 MB / 1.033 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.326e-05/0.3154, allocations: 8.656 kB / 1.033 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.855e-05/0.3154, allocations: 11.44 kB / 1.033 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/0.3154, allocations: 0 / 1.033 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of Templates: time 0.003591/0.319, allocations: 1.08 MB / 1.034 GB, free: 9.77 MB / 0.8106 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 -s cvode -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