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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.0015/0.0015, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001697/0.001697, allocations: 192 kB / 16.14 MB, free: 6.719 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.457/1.457, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.715/2.715, allocations: 461.9 MB / 0.7342 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 68.08 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3134, allocations: 157.4 MB / 1.052 GB, free: 8.848 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002668/0.3161, allocations: 1.625 MB / 1.054 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006674/0.3168, allocations: 462.7 kB / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.97e-05/0.3169, allocations: 0 / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.964e-05/0.3169, allocations: 0 / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.412e-05/0.317, allocations: 11.88 kB / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000186/0.3172, allocations: 31.89 kB / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.692e-05/0.3173, allocations: 63.84 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.916e-05/0.3174, allocations: 8 kB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.717e-05/0.3175, allocations: 27.92 kB / 1.054 GB, free: 6.609 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.364e-05/0.3176, allocations: 31.83 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.955e-05/0.3176, allocations: 4 kB / 1.054 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.599e-05/0.3176, allocations: 8 kB / 1.054 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.662e-05/0.3177, allocations: 11.98 kB / 1.054 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.256e-05/0.3177, allocations: 27.86 kB / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000106/0.3178, allocations: 68.05 kB / 1.054 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.3178, allocations: 0 / 1.054 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.02e-07/0.3178, allocations: 0 / 1.054 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.3178, allocations: 0 / 1.054 GB, free: 6.461 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.0005781/0.3184, allocations: 368.9 kB / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.3185, allocations: 16.03 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.132e-05/0.3185, allocations: 8.844 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.3186, allocations: 172.2 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.334e-05/0.3187, allocations: 4.375 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.93e-05/0.3187, allocations: 8.359 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.3189, allocations: 85.95 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.3189, allocations: 0 / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.3189, allocations: 4 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3189, allocations: 0 / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001377/0.3191, allocations: 51.91 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005458/0.3196, allocations: 320.7 kB / 1.055 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002619/0.3199, allocations: 102.5 kB / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.869e-05/0.32, allocations: 48.94 kB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.402e-05/0.32, allocations: 3.938 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002601/0.3203, allocations: 115.2 kB / 1.056 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 2.445e-06/0.3203, allocations: 0 / 1.056 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0003793/0.3207, allocations: 165.6 kB / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.3208, allocations: 59.41 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.838e-05/0.3208, allocations: 109.8 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.3209, allocations: 33.7 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.369e-05/0.3209, allocations: 88.28 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.98e-05/0.3209, allocations: 27.8 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-05/0.321, allocations: 29.7 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001012/0.3211, allocations: 322.8 kB / 1.056 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.178e-05/0.3212, allocations: 31.98 kB / 1.057 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.338e-05/0.3213, allocations: 56.81 kB / 1.057 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.3214, allocations: 69.62 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3215, allocations: 0 / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002071/0.3217, allocations: 113.9 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.3217, allocations: 4 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.3217, allocations: 0 / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.3217, allocations: 8 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.892e-05/0.3218, allocations: 11.94 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.3218, allocations: 3.984 kB / 1.057 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.618e-05/0.3219, allocations: 15.84 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.3219, allocations: 4 kB / 1.057 GB, free: 3.816 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 8.788e-05/0.322, allocations: 125.2 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.628e-05/0.322, allocations: 4 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.023e-05/0.3221, allocations: 16.38 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.3221, allocations: 4 kB / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.3221, allocations: 0 / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.3221, allocations: 3.938 kB / 1.057 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001523/0.3223, allocations: 201.4 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3223, allocations: 4 kB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.904e-05/0.3224, allocations: 11.94 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3224, allocations: 4 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.3224, allocations: 3.984 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3224, allocations: 0 / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3224, allocations: 0 / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003733/0.3228, allocations: 217 kB / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.987e-05/0.3228, allocations: 81.02 kB / 1.057 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.95e-05/0.3229, allocations: 15.95 kB / 1.057 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.508e-05/0.3229, allocations: 4 kB / 1.057 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.456e-05/0.323, allocations: 15.97 kB / 1.057 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.323, allocations: 8 kB / 1.057 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.448e-05/0.3231, allocations: 95.33 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3231, allocations: 0 / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000216/0.3233, allocations: 16 kB / 1.058 GB, free: 2.91 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.0001249/0.3234, allocations: 111.2 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002447/0.3237, allocations: 87.89 kB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3237, allocations: 0 / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.3238, allocations: 63.92 kB / 1.058 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002032/0.324, allocations: 19.92 kB / 1.058 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005057/0.3246, allocations: 287.2 kB / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.3248, allocations: 0.6926 MB / 1.059 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.428e-05/0.3249, allocations: 8.672 kB / 1.059 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.544e-05/0.3249, allocations: 11.44 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of SimCode: time 3.71e-07/0.3249, allocations: 0 / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of Templates: time 0.003147/0.3281, allocations: 0.9355 MB / 1.06 GB, free: 0.6484 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 -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/jenkins/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