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.001405/0.001405, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001439/0.001439, allocations: 195.6 kB / 16.25 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.519/1.519, allocations: 222.9 MB / 239.9 MB, free: 4.547 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.864/2.864, allocations: 437 MB / 0.7101 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 67.89 kB / 0.8687 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7119/0.7139, allocations: 151.6 MB / 1.017 GB, free: 2.703 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003306/0.7172, allocations: 1.63 MB / 1.018 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008528/0.7181, allocations: 455 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.886e-05/0.7182, allocations: 0 / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.321e-05/0.7183, allocations: 0 / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.391e-05/0.7183, allocations: 7.875 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002231/0.7186, allocations: 27.97 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001143/0.7187, allocations: 71.78 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.7188, allocations: 11.98 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.7189, allocations: 31.91 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.375e-05/0.719, allocations: 31.91 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.322e-05/0.7191, allocations: 4 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.839e-05/0.7191, allocations: 8 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.102e-05/0.7191, allocations: 19.92 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.748e-05/0.7192, allocations: 31.86 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.7193, allocations: 65.8 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.7193, allocations: 0 / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.954e-06/0.7193, allocations: 0 / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.7194, allocations: 0 / 1.019 GB, free: 312 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.0006847/0.72, allocations: 371.3 kB / 1.019 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.7201, allocations: 11.97 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.497e-05/0.7201, allocations: 8.844 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001503/0.7203, allocations: 176.2 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.203e-05/0.7204, allocations: 8.375 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.805e-05/0.7204, allocations: 8.359 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002183/0.7206, allocations: 85.95 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.7206, allocations: 0 / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.7207, allocations: 3.938 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.7207, allocations: 4 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001338/0.7208, allocations: 43.91 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006143/0.7214, allocations: 320.7 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000297/0.7218, allocations: 110.6 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.781e-05/0.7219, allocations: 40.84 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.767e-05/0.7219, allocations: 0 / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003233/0.7222, allocations: 115.3 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.332e-06/0.7222, allocations: 0 / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004409/0.7227, allocations: 169.8 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.526e-05/0.7228, allocations: 63.34 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.514e-05/0.7229, allocations: 113.8 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.7229, allocations: 29.7 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.883e-05/0.723, allocations: 88.28 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.072e-05/0.723, allocations: 35.78 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.66e-05/0.7231, allocations: 29.7 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.7232, allocations: 318.8 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.803e-05/0.7233, allocations: 31.98 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.849e-05/0.7234, allocations: 49.69 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.7236, allocations: 73.67 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.7236, allocations: 0 / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002256/0.7239, allocations: 117.5 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.7239, allocations: 4 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.7239, allocations: 0 / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.7239, allocations: 0 / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.057e-05/0.724, allocations: 15.94 kB / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.724, allocations: 4 kB / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.034e-05/0.7241, allocations: 7.984 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.7241, allocations: 8 kB / 1.022 GB, free: 13.65 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.0001086/0.7242, allocations: 118.6 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.234e-05/0.7243, allocations: 11.89 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.328e-05/0.7243, allocations: 8.375 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.7243, allocations: 4 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.7243, allocations: 8 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.7243, allocations: 0 / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001968/0.7245, allocations: 197.5 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.7246, allocations: 0 / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.977e-05/0.7247, allocations: 15.92 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.7247, allocations: 0 / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.7247, allocations: 8 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-06/0.7247, allocations: 3.984 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.7247, allocations: 3.938 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004078/0.7251, allocations: 216.8 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.414e-05/0.7252, allocations: 85.05 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.7252, allocations: 3.984 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.16e-05/0.7253, allocations: 8 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.086e-05/0.7254, allocations: 15.97 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.521e-05/0.7254, allocations: 8 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.816e-05/0.7255, allocations: 83.27 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.033e-06/0.7255, allocations: 0 / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002107/0.7257, allocations: 28 kB / 1.022 GB, free: 12.74 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.0001625/0.7258, allocations: 107.1 kB / 1.022 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002671/0.7261, allocations: 107.8 kB / 1.022 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.7261, allocations: 0 / 1.022 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.7263, allocations: 63.97 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002153/0.7265, allocations: 11.48 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005767/0.7271, allocations: 285.9 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.7274, allocations: 0.6885 MB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.415e-05/0.7275, allocations: 8.656 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.907e-05/0.7275, allocations: 15.44 kB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.7275, allocations: 4 kB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of Templates: time 0.004074/0.7316, allocations: 0.9939 MB / 1.025 GB, free: 10.42 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