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.001465/0.001465, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001604/0.001604, allocations: 192.3 kB / 16.13 MB, free: 6.637 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.529/1.529, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.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.946/2.946, allocations: 437 MB / 0.71 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00207/0.00207, allocations: 71.89 kB / 0.8686 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6752/0.6773, allocations: 151.6 MB / 1.017 GB, free: 2.773 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003534/0.6809, allocations: 1.626 MB / 1.018 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008984/0.6818, allocations: 458.9 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.145e-05/0.6819, allocations: 0 / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.766e-05/0.6819, allocations: 4 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.6821, allocations: 3.938 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002268/0.6823, allocations: 27.92 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.000119/0.6824, allocations: 75.75 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.6826, allocations: 4 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.6827, allocations: 27.92 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.44e-05/0.6828, allocations: 35.89 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.373e-05/0.6828, allocations: 4 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.518e-05/0.6828, allocations: 0 / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.702e-05/0.6829, allocations: 19.92 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.113e-05/0.6829, allocations: 23.86 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001445/0.6831, allocations: 65.8 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.6831, allocations: 0 / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.192e-06/0.6831, allocations: 0 / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.022e-06/0.6831, allocations: 0 / 1.019 GB, free: 404 kB / 0.7637 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.0007696/0.6839, allocations: 375.4 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.731e-05/0.684, allocations: 8.031 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.829e-05/0.684, allocations: 8.844 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001692/0.6842, allocations: 176.2 kB / 1.019 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.6842, allocations: 4.312 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.874e-05/0.6843, allocations: 16.36 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002179/0.6845, allocations: 81.95 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.6845, allocations: 0 / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.6845, allocations: 4 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.6846, allocations: 0 / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001474/0.6847, allocations: 47.91 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006889/0.6854, allocations: 316.8 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.6857, allocations: 102.5 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.6858, allocations: 48.78 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.6859, allocations: 4 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003088/0.6862, allocations: 115.3 kB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.422e-06/0.6862, allocations: 0 / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004193/0.6866, allocations: 173.6 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.6867, allocations: 55.34 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.013e-05/0.6868, allocations: 109.8 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.27e-05/0.6868, allocations: 29.7 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.828e-05/0.6869, allocations: 96.22 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.368e-05/0.6869, allocations: 27.64 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.189e-05/0.687, allocations: 29.7 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.6871, allocations: 322.8 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.234e-05/0.6872, allocations: 27.98 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.351e-05/0.6873, allocations: 49.69 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/0.6875, allocations: 61.7 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.6875, allocations: 0 / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002301/0.6877, allocations: 117.4 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.6877, allocations: 9.562 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.6877, allocations: 4 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.6878, allocations: 0 / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.69e-05/0.6878, allocations: 11.94 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.6879, allocations: 0 / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.73e-05/0.6879, allocations: 19.94 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.688, allocations: 3.984 kB / 1.021 GB, free: 13.75 MB / 0.7794 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.000124/0.6881, allocations: 126.6 kB / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.8e-05/0.6881, allocations: 8 kB / 1.021 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.945e-05/0.6882, allocations: 16.38 kB / 1.021 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.6882, allocations: 3.938 kB / 1.021 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.6882, allocations: 0 / 1.021 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.6882, allocations: 4 kB / 1.021 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002315/0.6884, allocations: 209.5 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.6884, allocations: 0 / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.055e-05/0.6885, allocations: 8 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.6885, allocations: 3.938 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.6886, allocations: 3.984 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.6886, allocations: 4 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.6886, allocations: 4 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004197/0.689, allocations: 208.9 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.663e-05/0.6891, allocations: 81.02 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.129e-05/0.6891, allocations: 12.02 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.261e-05/0.6892, allocations: 4 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.361e-05/0.6892, allocations: 20.03 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.6893, allocations: 4 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.887e-05/0.6893, allocations: 91.27 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6893, allocations: 0 / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002042/0.6896, allocations: 20 kB / 1.022 GB, free: 12.84 MB / 0.7794 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.0001541/0.6897, allocations: 107.2 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002554/0.69, allocations: 88.5 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.69, allocations: 4 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001599/0.6902, allocations: 67.91 kB / 1.022 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002141/0.6904, allocations: 16.42 kB / 1.022 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005901/0.691, allocations: 283.1 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.6913, allocations: 0.6887 MB / 1.023 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.349e-05/0.6914, allocations: 8.672 kB / 1.023 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.744e-05/0.6914, allocations: 11.44 kB / 1.023 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.6914, allocations: 0 / 1.023 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of Templates: time 0.003616/0.695, allocations: 0.938 MB / 1.024 GB, free: 10.59 MB / 0.7794 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=400 -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/jenkins/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