Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.007951/0.007951, allocations: 169.7 kB / 16.27 MB, free: 6.652 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.303/1.303, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.154/2.154, allocations: 390.9 MB / 0.6664 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003007/0.0003007, allocations: 12 kB / 0.8161 GB, free: 13.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5355/0.5358, allocations: 142.4 MB / 0.9552 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001274/0.5372, allocations: 1.287 MB / 0.9564 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004724/0.5376, allocations: 436.8 kB / 0.9568 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.131e-05/0.5377, allocations: 0.9688 kB / 0.9568 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.405e-05/0.5377, allocations: 7.922 kB / 0.9569 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.83e-05/0.5378, allocations: 9.047 kB / 0.9569 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001477/0.5379, allocations: 25.52 kB / 0.9569 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.264e-05/0.538, allocations: 73.12 kB / 0.957 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.734e-05/0.5381, allocations: 20.86 kB / 0.957 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.604e-05/0.5382, allocations: 27.95 kB / 0.957 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.828e-05/0.5382, allocations: 25.09 kB / 0.957 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.511e-05/0.5383, allocations: 3.062 kB / 0.957 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.226e-05/0.5383, allocations: 2.812 kB / 0.957 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.988e-05/0.5383, allocations: 18.12 kB / 0.957 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.322e-05/0.5383, allocations: 46.36 kB / 0.9571 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.487e-05/0.5384, allocations: 68.48 kB / 0.9572 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.5384, allocations: 0 / 0.9572 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.122e-06/0.5384, allocations: 1.062 kB / 0.9572 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.982e-06/0.5384, allocations: 0 / 0.9572 GB, free: 6.301 MB / 0.7169 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.0003677/0.5388, allocations: 361.1 kB / 0.9575 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.5389, allocations: 9.906 kB / 0.9575 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.701e-05/0.5389, allocations: 35.84 kB / 0.9575 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.552e-05/0.5389, allocations: 9.391 kB / 0.9576 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.771e-05/0.539, allocations: 183.8 kB / 0.9577 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.539, allocations: 2.469 kB / 0.9577 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.539, allocations: 5.875 kB / 0.9577 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000157/0.5392, allocations: 92.03 kB / 0.9578 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-06/0.5392, allocations: 0 / 0.9578 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.5392, allocations: 1.188 kB / 0.9578 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.708e-06/0.5392, allocations: 3.969 kB / 0.9578 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001159/0.5394, allocations: 47.44 kB / 0.9579 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00039/0.5398, allocations: 321.2 kB / 0.9582 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000207/0.54, allocations: 97.52 kB / 0.9583 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.278e-05/0.5401, allocations: 55.55 kB / 0.9583 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.39e-05/0.5401, allocations: 5.281 kB / 0.9583 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002005/0.5403, allocations: 125.8 kB / 0.9585 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.5403, allocations: 4 kB / 0.9585 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003262/0.5406, allocations: 174.1 kB / 0.9586 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.525e-05/0.5407, allocations: 52.62 kB / 0.9587 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.548e-05/0.5407, allocations: 108.7 kB / 0.9588 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.5407, allocations: 31.17 kB / 0.9588 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.118e-05/0.5408, allocations: 89.66 kB / 0.9589 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.375e-05/0.5408, allocations: 35.7 kB / 0.9589 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-05/0.5408, allocations: 17.62 kB / 0.9589 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.467e-05/0.5409, allocations: 325.4 kB / 0.9593 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.276e-05/0.5409, allocations: 30.23 kB / 0.9593 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.456e-05/0.541, allocations: 58.38 kB / 0.9593 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001335/0.5412, allocations: 68.52 kB / 0.9594 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.5412, allocations: 0 / 0.9594 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001777/0.5414, allocations: 113.6 kB / 0.9595 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.5414, allocations: 7.094 kB / 0.9595 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.5414, allocations: 0 / 0.9595 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.638e-06/0.5414, allocations: 5.531 kB / 0.9595 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.639e-05/0.5415, allocations: 14.64 kB / 0.9595 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.5415, allocations: 4.312 kB / 0.9595 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.396e-05/0.5416, allocations: 17.92 kB / 0.9596 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.5416, allocations: 2.906 kB / 0.9596 GB, free: 4.09 MB / 0.7169 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 5.366e-05/0.5416, allocations: 122.7 kB / 0.9597 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.503e-05/0.5416, allocations: 8.281 kB / 0.9597 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.413e-05/0.5417, allocations: 17.73 kB / 0.9597 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.5417, allocations: 1.281 kB / 0.9597 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.5417, allocations: 5.75 kB / 0.9597 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.5417, allocations: 0 / 0.9597 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.284e-05/0.5418, allocations: 201.1 kB / 0.9599 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.5418, allocations: 1.188 kB / 0.9599 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.832e-05/0.5419, allocations: 12.42 kB / 0.9599 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.644e-06/0.5419, allocations: 48 / 0.9599 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.5419, allocations: 5.391 kB / 0.9599 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.5419, allocations: 1.312 kB / 0.9599 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.5419, allocations: 3.984 kB / 0.9599 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003074/0.5422, allocations: 232.7 kB / 0.9601 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.716e-05/0.5422, allocations: 83.77 kB / 0.9602 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.5423, allocations: 5.375 kB / 0.9602 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.636e-05/0.5423, allocations: 9.484 kB / 0.9602 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.987e-05/0.5424, allocations: 17.47 kB / 0.9603 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-06/0.5424, allocations: 8.188 kB / 0.9603 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.338e-05/0.5424, allocations: 94.08 kB / 0.9604 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5424, allocations: 0 / 0.9604 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001875/0.5426, allocations: 19.12 kB / 0.9604 GB, free: 3.336 MB / 0.7169 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.0004313/0.5431, allocations: 0.7639 MB / 0.9611 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001835/0.5433, allocations: 96.27 kB / 0.9612 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.5433, allocations: 0 / 0.9612 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.5434, allocations: 62.48 kB / 0.9613 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001771/0.5436, allocations: 17.55 kB / 0.9613 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.5447, allocations: 1.538 MB / 0.9628 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.08e-05/0.5447, allocations: 0.6903 MB / 0.9635 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.566e-05/0.5448, allocations: 7.906 kB / 0.9635 GB, free: 496 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.14e-05/0.5448, allocations: 20.44 kB / 0.9635 GB, free: 484 kB / 0.7169 GB Notification: Performance of SimCode: time 2.71e-07/0.5448, allocations: 0 / 0.9635 GB, free: 484 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7046/1.249, allocations: 1.916 MB / 0.9654 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001987/1.25, allocations: 214.4 kB / 0.9656 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.634/2.883, allocations: 0 / 0.9656 GB, free: 15.33 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches