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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001388/0.001388, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001579/0.001579, allocations: 194.5 kB / 16.26 MB, free: 6.621 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.33/1.33, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.282/2.282, allocations: 390.2 MB / 0.6644 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 67.89 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5033/0.5046, allocations: 140.4 MB / 0.9492 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002151/0.5068, allocations: 1.621 MB / 0.9508 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004736/0.5072, allocations: 450.3 kB / 0.9513 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.256e-05/0.5073, allocations: 0 / 0.9513 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.654e-05/0.5073, allocations: 3.938 kB / 0.9513 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.548e-05/0.5074, allocations: 5.812 kB / 0.9513 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001545/0.5075, allocations: 28.84 kB / 0.9513 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.673e-05/0.5076, allocations: 73.33 kB / 0.9514 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.59e-05/0.5077, allocations: 14.33 kB / 0.9514 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.63e-05/0.5078, allocations: 28.77 kB / 0.9514 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.553e-05/0.5079, allocations: 36.55 kB / 0.9514 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.5079, allocations: 5.406 kB / 0.9514 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.374e-05/0.5079, allocations: 6.625 kB / 0.9514 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.025e-05/0.5079, allocations: 14.58 kB / 0.9515 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.24e-05/0.508, allocations: 32.73 kB / 0.9515 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.894e-05/0.508, allocations: 73.45 kB / 0.9516 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.5081, allocations: 0 / 0.9516 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.262e-06/0.5081, allocations: 0 / 0.9516 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.5081, allocations: 0 / 0.9516 GB, free: 7.305 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.0004032/0.5085, allocations: 373.4 kB / 0.9519 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.5085, allocations: 10.16 kB / 0.9519 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.469e-05/0.5085, allocations: 31.69 kB / 0.952 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.35e-05/0.5086, allocations: 17.22 kB / 0.952 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.744e-05/0.5086, allocations: 176.3 kB / 0.9521 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.5087, allocations: 3.781 kB / 0.9521 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.215e-05/0.5087, allocations: 8.844 kB / 0.9522 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000149/0.5088, allocations: 88.89 kB / 0.9522 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.5089, allocations: 0 / 0.9522 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.5089, allocations: 5.297 kB / 0.9522 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.5089, allocations: 1.406 kB / 0.9522 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001126/0.509, allocations: 42.97 kB / 0.9523 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003873/0.5094, allocations: 325.1 kB / 0.9526 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002071/0.5096, allocations: 102.8 kB / 0.9527 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.66e-05/0.5097, allocations: 49.42 kB / 0.9527 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.5097, allocations: 1.219 kB / 0.9527 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001918/0.5099, allocations: 112.7 kB / 0.9529 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.433e-06/0.5099, allocations: 0 / 0.9529 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003207/0.5102, allocations: 172.4 kB / 0.953 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.231e-05/0.5103, allocations: 56.45 kB / 0.9531 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.589e-05/0.5103, allocations: 111.9 kB / 0.9532 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/0.5103, allocations: 31.73 kB / 0.9532 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.132e-05/0.5104, allocations: 86.62 kB / 0.9533 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.308e-05/0.5104, allocations: 30.83 kB / 0.9533 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.5104, allocations: 26.53 kB / 0.9533 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.501e-05/0.5105, allocations: 325 kB / 0.9537 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.028e-05/0.5106, allocations: 28.58 kB / 0.9537 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.139e-05/0.5106, allocations: 53.23 kB / 0.9537 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001102/0.5108, allocations: 67.88 kB / 0.9538 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.5108, allocations: 1.344 kB / 0.9538 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001689/0.5109, allocations: 109.1 kB / 0.9539 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/0.511, allocations: 6.312 kB / 0.9539 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-06/0.511, allocations: 1.625 kB / 0.9539 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.012e-05/0.511, allocations: 1.594 kB / 0.9539 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.784e-05/0.511, allocations: 12.3 kB / 0.9539 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.5111, allocations: 5.125 kB / 0.9539 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.575e-05/0.5111, allocations: 12.45 kB / 0.9539 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.736e-06/0.5112, allocations: 3.125 kB / 0.9539 GB, free: 5.094 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.378e-05/0.5112, allocations: 126.7 kB / 0.9541 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.573e-05/0.5112, allocations: 8.5 kB / 0.9541 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.375e-05/0.5113, allocations: 17.89 kB / 0.9541 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.5113, allocations: 1.812 kB / 0.9541 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.5113, allocations: 7.938 kB / 0.9541 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.5113, allocations: 0 / 0.9541 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.807e-05/0.5114, allocations: 198.6 kB / 0.9543 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.5114, allocations: 0 / 0.9543 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.179e-05/0.5115, allocations: 15.23 kB / 0.9543 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.5115, allocations: 1.719 kB / 0.9543 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.5115, allocations: 1.25 kB / 0.9543 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.5115, allocations: 4 kB / 0.9543 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.5115, allocations: 1.75 kB / 0.9543 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002956/0.5118, allocations: 227 kB / 0.9545 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.615e-05/0.5118, allocations: 82.27 kB / 0.9546 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.189e-05/0.5118, allocations: 6.094 kB / 0.9546 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.648e-05/0.5119, allocations: 7.578 kB / 0.9546 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.515e-05/0.512, allocations: 13.89 kB / 0.9546 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.512, allocations: 8.516 kB / 0.9546 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.364e-05/0.512, allocations: 85.34 kB / 0.9547 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.512, allocations: 64 / 0.9547 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001886/0.5122, allocations: 26.92 kB / 0.9547 GB, free: 4.34 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.0004346/0.5126, allocations: 0.7603 MB / 0.9555 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001941/0.5128, allocations: 88.61 kB / 0.9556 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.5129, allocations: 4 kB / 0.9556 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.664e-05/0.513, allocations: 60.55 kB / 0.9556 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001742/0.5131, allocations: 15.88 kB / 0.9557 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.5142, allocations: 1.506 MB / 0.9571 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.67e-05/0.5143, allocations: 0.6933 MB / 0.9578 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.482e-05/0.5143, allocations: 8.266 kB / 0.9578 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.036e-05/0.5144, allocations: 22.98 kB / 0.9578 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.5144, allocations: 0 / 0.9578 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4653/0.9797, allocations: 2.066 MB / 0.9598 GB, free: 492 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/0.9799, allocations: 219.4 kB / 0.9601 GB, free: 228 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.817/2.797, allocations: 2.875 kB / 0.9601 GB, free: 228 kB / 0.7169 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