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.001496/0.001496, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001715/0.001715, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.251/1.251, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.069/2.069, allocations: 390.2 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 67.89 kB / 0.8127 GB, free: 14.35 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.502/0.5033, allocations: 140.4 MB / 0.9497 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002335/0.5057, allocations: 1.549 MB / 0.9512 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005605/0.5063, allocations: 448.8 kB / 0.9517 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.851e-05/0.5063, allocations: 0 / 0.9517 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.399e-05/0.5064, allocations: 9.422 kB / 0.9517 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.858e-05/0.5065, allocations: 9.125 kB / 0.9517 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001643/0.5066, allocations: 32.03 kB / 0.9517 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.167e-05/0.5067, allocations: 70.11 kB / 0.9518 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.435e-05/0.5068, allocations: 13.92 kB / 0.9518 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.046e-05/0.5069, allocations: 36.44 kB / 0.9518 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.336e-05/0.507, allocations: 36.11 kB / 0.9519 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.957e-05/0.507, allocations: 6.562 kB / 0.9519 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.501e-05/0.507, allocations: 6.531 kB / 0.9519 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.491e-05/0.507, allocations: 17.89 kB / 0.9519 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.342e-05/0.5071, allocations: 24.84 kB / 0.9519 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.647e-05/0.5072, allocations: 72.11 kB / 0.952 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.5072, allocations: 0 / 0.952 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.433e-06/0.5072, allocations: 0 / 0.952 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.5072, allocations: 5.062 kB / 0.952 GB, free: 7.418 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.0004396/0.5077, allocations: 372.6 kB / 0.9524 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.5077, allocations: 9.656 kB / 0.9524 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.703e-05/0.5077, allocations: 45.42 kB / 0.9524 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.984e-05/0.5078, allocations: 9.188 kB / 0.9524 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.336e-05/0.5078, allocations: 175.7 kB / 0.9526 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.5079, allocations: 1.719 kB / 0.9526 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.341e-05/0.5079, allocations: 9.734 kB / 0.9526 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001587/0.508, allocations: 86.33 kB / 0.9527 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.5081, allocations: 0 / 0.9527 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.5081, allocations: 1.25 kB / 0.9527 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.5081, allocations: 1.438 kB / 0.9527 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001309/0.5082, allocations: 50.66 kB / 0.9527 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004221/0.5087, allocations: 320.4 kB / 0.953 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.5089, allocations: 99.75 kB / 0.9531 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.482e-05/0.509, allocations: 49.16 kB / 0.9532 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.509, allocations: 1 kB / 0.9532 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00021/0.5092, allocations: 116.5 kB / 0.9533 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.5092, allocations: 0 / 0.9533 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003446/0.5096, allocations: 168.7 kB / 0.9535 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.233e-05/0.5096, allocations: 56.69 kB / 0.9535 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.968e-05/0.5097, allocations: 108.3 kB / 0.9536 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.25e-05/0.5097, allocations: 30.83 kB / 0.9536 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.336e-05/0.5097, allocations: 86.75 kB / 0.9537 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.587e-05/0.5097, allocations: 31.92 kB / 0.9537 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.184e-05/0.5098, allocations: 30.05 kB / 0.9538 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.777e-05/0.5098, allocations: 320.2 kB / 0.9541 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.432e-05/0.5099, allocations: 40.42 kB / 0.9541 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.642e-05/0.51, allocations: 52.88 kB / 0.9542 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001221/0.5101, allocations: 60.39 kB / 0.9542 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.5101, allocations: 1.312 kB / 0.9542 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001855/0.5103, allocations: 116.4 kB / 0.9543 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.5103, allocations: 6.562 kB / 0.9543 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.5103, allocations: 4 kB / 0.9544 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.5104, allocations: 5.344 kB / 0.9544 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.025e-05/0.5104, allocations: 8.406 kB / 0.9544 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/0.5105, allocations: 5.594 kB / 0.9544 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.923e-05/0.5105, allocations: 17.45 kB / 0.9544 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.5105, allocations: 6.5 kB / 0.9544 GB, free: 5.195 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.625e-05/0.5106, allocations: 118.2 kB / 0.9545 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.772e-05/0.5106, allocations: 12.7 kB / 0.9545 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.389e-05/0.5107, allocations: 17.56 kB / 0.9545 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.5107, allocations: 1.219 kB / 0.9545 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.5107, allocations: 0 / 0.9545 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.5107, allocations: 5.281 kB / 0.9545 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.589e-05/0.5108, allocations: 202.4 kB / 0.9547 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-06/0.5108, allocations: 0 / 0.9547 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.183e-05/0.5109, allocations: 11.39 kB / 0.9547 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.5109, allocations: 1.188 kB / 0.9547 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.5109, allocations: 1.219 kB / 0.9547 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.5109, allocations: 5.297 kB / 0.9548 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.5109, allocations: 3.938 kB / 0.9548 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003223/0.5112, allocations: 219.5 kB / 0.955 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.807e-05/0.5113, allocations: 83.02 kB / 0.955 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.349e-05/0.5113, allocations: 9.828 kB / 0.9551 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.987e-05/0.5114, allocations: 4.344 kB / 0.9551 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.956e-05/0.5114, allocations: 17.34 kB / 0.9551 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.5114, allocations: 4.812 kB / 0.9551 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.602e-05/0.5115, allocations: 92.83 kB / 0.9552 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5115, allocations: 1.031 kB / 0.9552 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002041/0.5117, allocations: 19.09 kB / 0.9552 GB, free: 4.453 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.0004859/0.5122, allocations: 0.7597 MB / 0.9559 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000214/0.5124, allocations: 92.64 kB / 0.956 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.5124, allocations: 0 / 0.956 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.5125, allocations: 68.59 kB / 0.9561 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001884/0.5127, allocations: 16.31 kB / 0.9561 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/0.5139, allocations: 1.486 MB / 0.9576 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.017e-05/0.514, allocations: 0.6931 MB / 0.9582 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.752e-05/0.514, allocations: 10.06 kB / 0.9582 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.242e-05/0.5141, allocations: 18.47 kB / 0.9583 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.5141, allocations: 5.812 kB / 0.9583 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4626/0.9767, allocations: 2.214 MB / 0.9604 GB, free: 460 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.26/15.24, allocations: 14.25 kB / 0.9604 GB, free: 452 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