Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001166/0.001166, allocations: 105.2 kB / 16.27 MB, free: 5.988 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.001121/0.001121, allocations: 190.7 kB / 17.2 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.359/1.359, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.47/2.47, allocations: 437 MB / 0.711 GB, free: 4.531 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001628, allocations: 66.72 kB / 0.8699 GB, free: 2.223 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3071, allocations: 151.6 MB / 1.018 GB, free: 10.68 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003323/0.3105, allocations: 1.578 MB / 1.019 GB, free: 9.086 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0008177/0.3113, allocations: 460.3 kB / 1.02 GB, free: 8.633 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.439e-05/0.3114, allocations: 0 / 1.02 GB, free: 8.633 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.077e-05/0.3115, allocations: 7.938 kB / 1.02 GB, free: 8.625 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.347e-05/0.3116, allocations: 7.875 kB / 1.02 GB, free: 8.617 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002096/0.3118, allocations: 23.95 kB / 1.02 GB, free: 8.594 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.000119/0.3119, allocations: 75.78 kB / 1.02 GB, free: 8.52 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.312, allocations: 11.98 kB / 1.02 GB, free: 8.508 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001621/0.3122, allocations: 35.84 kB / 1.02 GB, free: 8.473 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.978e-05/0.3123, allocations: 35.91 kB / 1.02 GB, free: 8.438 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.238e-05/0.3123, allocations: 4 kB / 1.02 GB, free: 8.434 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.759e-05/0.3123, allocations: 8 kB / 1.02 GB, free: 8.426 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.917e-05/0.3124, allocations: 11.92 kB / 1.02 GB, free: 8.414 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.945e-05/0.3124, allocations: 31.86 kB / 1.02 GB, free: 8.383 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.3126, allocations: 60.12 kB / 1.02 GB, free: 8.324 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3126, allocations: 0 / 1.02 GB, free: 8.324 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3126, allocations: 0 / 1.02 GB, free: 8.324 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.3126, allocations: 0 / 1.02 GB, free: 8.324 MB / 0.795 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.0006489/0.3133, allocations: 379.3 kB / 1.021 GB, free: 7.906 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.3133, allocations: 8.922 kB / 1.021 GB, free: 7.898 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.521e-05/0.3134, allocations: 8.844 kB / 1.021 GB, free: 7.891 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.3135, allocations: 176.3 kB / 1.021 GB, free: 7.68 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.445e-05/0.3135, allocations: 4.375 kB / 1.021 GB, free: 7.676 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.879e-05/0.3135, allocations: 8.375 kB / 1.021 GB, free: 7.668 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.3137, allocations: 85.89 kB / 1.021 GB, free: 7.578 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.3138, allocations: 0 / 1.021 GB, free: 7.578 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.674e-05/0.3138, allocations: 7.984 kB / 1.021 GB, free: 7.57 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.3138, allocations: 4 kB / 1.021 GB, free: 7.566 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001375/0.3139, allocations: 47.89 kB / 1.021 GB, free: 7.52 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005828/0.3145, allocations: 320.7 kB / 1.021 GB, free: 7.156 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002895/0.3148, allocations: 102.5 kB / 1.021 GB, free: 7.047 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.715e-05/0.3149, allocations: 48.83 kB / 1.021 GB, free: 6.996 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.495e-05/0.315, allocations: 0 / 1.021 GB, free: 6.996 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002732/0.3152, allocations: 111.3 kB / 1.021 GB, free: 6.875 MB / 0.795 GB Notification: Performance of pre-optimization done (n=11): time 1.843e-06/0.3153, allocations: 3.938 kB / 1.021 GB, free: 6.871 MB / 0.795 GB Notification: Performance of matching and sorting (n=11): time 0.0004092/0.3157, allocations: 173.6 kB / 1.022 GB, free: 6.695 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.439e-05/0.3158, allocations: 55.39 kB / 1.022 GB, free: 6.629 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.734e-05/0.3159, allocations: 117.8 kB / 1.022 GB, free: 6.504 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.3159, allocations: 25.7 kB / 1.022 GB, free: 6.473 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.389e-05/0.316, allocations: 92.44 kB / 1.022 GB, free: 6.379 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.697e-05/0.316, allocations: 27.69 kB / 1.022 GB, free: 6.352 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.19e-05/0.3161, allocations: 25.72 kB / 1.022 GB, free: 6.32 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3162, allocations: 326.8 kB / 1.022 GB, free: 5.992 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.881e-05/0.3163, allocations: 31.98 kB / 1.022 GB, free: 5.961 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.464e-05/0.3164, allocations: 50.33 kB / 1.022 GB, free: 5.906 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/0.3165, allocations: 65.62 kB / 1.022 GB, free: 5.836 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.3165, allocations: 0 / 1.022 GB, free: 5.836 MB / 0.795 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002212/0.3167, allocations: 113.5 kB / 1.023 GB, free: 5.719 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.3168, allocations: 14.66 kB / 1.023 GB, free: 5.707 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.3168, allocations: 0 / 1.023 GB, free: 5.707 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.3168, allocations: 0 / 1.023 GB, free: 5.707 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.817e-05/0.3169, allocations: 11.98 kB / 1.023 GB, free: 5.695 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.537e-06/0.3169, allocations: 4 kB / 1.023 GB, free: 5.691 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.252e-05/0.317, allocations: 19.83 kB / 1.023 GB, free: 5.672 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.317, allocations: 4 kB / 1.023 GB, free: 5.668 MB / 0.795 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.302e-05/0.3171, allocations: 121.7 kB / 1.023 GB, free: 5.539 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.046e-05/0.3172, allocations: 8 kB / 1.023 GB, free: 5.531 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.416e-05/0.3172, allocations: 16.36 kB / 1.023 GB, free: 5.512 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.3172, allocations: 4 kB / 1.023 GB, free: 5.508 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3172, allocations: 0 / 1.023 GB, free: 5.508 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3172, allocations: 0 / 1.023 GB, free: 5.508 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001616/0.3174, allocations: 201.5 kB / 1.023 GB, free: 5.262 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.3174, allocations: 0 / 1.023 GB, free: 5.262 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.846e-05/0.3175, allocations: 11.98 kB / 1.023 GB, free: 5.25 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3175, allocations: 0 / 1.023 GB, free: 5.25 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.3175, allocations: 4 kB / 1.023 GB, free: 5.246 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.3175, allocations: 4 kB / 1.023 GB, free: 5.242 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3175, allocations: 0 / 1.023 GB, free: 5.242 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003808/0.3179, allocations: 217.4 kB / 1.023 GB, free: 5.012 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.32e-05/0.318, allocations: 85.05 kB / 1.023 GB, free: 4.91 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.545e-05/0.318, allocations: 4 kB / 1.023 GB, free: 4.906 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.111e-05/0.3181, allocations: 7.984 kB / 1.023 GB, free: 4.898 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.251e-05/0.3181, allocations: 20.05 kB / 1.023 GB, free: 4.879 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.3182, allocations: 7.984 kB / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.43e-05/0.3182, allocations: 83.59 kB / 1.023 GB, free: 4.789 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3182, allocations: 0 / 1.023 GB, free: 4.789 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002098/0.3184, allocations: 23.98 kB / 1.023 GB, free: 4.766 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.0001662/0.3186, allocations: 106.8 kB / 1.023 GB, free: 4.656 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002664/0.3189, allocations: 103.8 kB / 1.024 GB, free: 4.555 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3189, allocations: 11.94 kB / 1.024 GB, free: 4.543 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001925/0.3191, allocations: 67.91 kB / 1.024 GB, free: 4.477 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.3193, allocations: 16.22 kB / 1.024 GB, free: 4.461 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005647/0.3199, allocations: 278.9 kB / 1.024 GB, free: 4.156 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002609/0.3201, allocations: 0.6923 MB / 1.025 GB, free: 3.438 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.512e-05/0.3202, allocations: 15.44 kB / 1.025 GB, free: 3.422 MB / 0.795 GB Notification: Performance of SimCode: time 3.21e-07/0.3202, allocations: 0 / 1.025 GB, free: 3.422 MB / 0.795 GB Notification: Performance of Templates: time 0.003068/0.3233, allocations: 1.129 MB / 1.026 GB, free: 2.293 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches