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.001288/0.001288, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001255/0.001255, allocations: 193.2 kB / 16.14 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.27/1.27, allocations: 222.9 MB / 239.8 MB, free: 4.59 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.184/2.184, allocations: 390.2 MB / 0.6643 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 67.89 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5006/0.5019, allocations: 140.4 MB / 0.9491 GB, free: 9.379 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002157/0.5041, allocations: 1.626 MB / 0.9506 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004629/0.5046, allocations: 437.7 kB / 0.9511 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.318e-05/0.5047, allocations: 1.375 kB / 0.9511 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.528e-05/0.5047, allocations: 4 kB / 0.9511 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.548e-05/0.5047, allocations: 17.22 kB / 0.9511 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001476/0.5049, allocations: 25.48 kB / 0.9511 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.868e-05/0.505, allocations: 64.72 kB / 0.9512 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.655e-05/0.5051, allocations: 13.48 kB / 0.9512 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.298e-05/0.5051, allocations: 32.27 kB / 0.9512 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.558e-05/0.5052, allocations: 37.47 kB / 0.9512 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.5052, allocations: 2.75 kB / 0.9513 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.318e-05/0.5052, allocations: 4.125 kB / 0.9513 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.984e-05/0.5053, allocations: 14.72 kB / 0.9513 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.155e-05/0.5053, allocations: 24.12 kB / 0.9513 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.543e-05/0.5054, allocations: 63.91 kB / 0.9514 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.5054, allocations: 1.375 kB / 0.9514 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.72e-07/0.5054, allocations: 0 / 0.9514 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.5054, allocations: 0 / 0.9514 GB, free: 7.562 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.0004118/0.5058, allocations: 382.9 kB / 0.9517 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.118e-05/0.5059, allocations: 9.625 kB / 0.9517 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.653e-05/0.5059, allocations: 40.11 kB / 0.9518 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.743e-05/0.5059, allocations: 10.12 kB / 0.9518 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.518e-05/0.506, allocations: 167.4 kB / 0.9519 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.506, allocations: 1.781 kB / 0.9519 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.214e-05/0.506, allocations: 9.734 kB / 0.9519 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001528/0.5062, allocations: 89.36 kB / 0.952 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.5062, allocations: 5.344 kB / 0.952 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.5062, allocations: 0 / 0.952 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.526e-06/0.5062, allocations: 1.312 kB / 0.952 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.5064, allocations: 47.81 kB / 0.9521 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000408/0.5068, allocations: 315.9 kB / 0.9524 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002125/0.507, allocations: 108.8 kB / 0.9525 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.031e-05/0.5071, allocations: 44.94 kB / 0.9525 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.187e-05/0.5071, allocations: 3.984 kB / 0.9525 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001933/0.5073, allocations: 121.5 kB / 0.9527 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.412e-06/0.5073, allocations: 0 / 0.9527 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003265/0.5076, allocations: 172.2 kB / 0.9528 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.133e-05/0.5077, allocations: 52.56 kB / 0.9529 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.71e-05/0.5077, allocations: 113.1 kB / 0.953 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.183e-05/0.5077, allocations: 31.14 kB / 0.953 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.139e-05/0.5078, allocations: 85.59 kB / 0.9531 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.473e-05/0.5078, allocations: 31.73 kB / 0.9531 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-05/0.5078, allocations: 35.11 kB / 0.9532 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.413e-05/0.5079, allocations: 320.3 kB / 0.9535 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.33e-05/0.508, allocations: 27.77 kB / 0.9535 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.453e-05/0.508, allocations: 50.38 kB / 0.9535 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.5082, allocations: 72.48 kB / 0.9536 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.5082, allocations: 0 / 0.9536 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001789/0.5084, allocations: 113.8 kB / 0.9537 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/0.5084, allocations: 4.906 kB / 0.9537 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.5084, allocations: 1.031 kB / 0.9537 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.287e-06/0.5084, allocations: 1.5 kB / 0.9537 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.14e-05/0.5085, allocations: 12.75 kB / 0.9537 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.5085, allocations: 1.281 kB / 0.9537 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.907e-05/0.5086, allocations: 12.36 kB / 0.9537 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-06/0.5086, allocations: 2.875 kB / 0.9537 GB, free: 5.344 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.589e-05/0.5086, allocations: 124 kB / 0.9539 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.727e-05/0.5087, allocations: 12.42 kB / 0.9539 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.327e-05/0.5087, allocations: 17.66 kB / 0.9539 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.5087, allocations: 1.406 kB / 0.9539 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.5087, allocations: 1.438 kB / 0.9539 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.5087, allocations: 0 / 0.9539 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.576e-05/0.5088, allocations: 202.1 kB / 0.9541 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.5088, allocations: 3.938 kB / 0.9541 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.203e-05/0.5089, allocations: 10.92 kB / 0.9541 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.5089, allocations: 1.438 kB / 0.9541 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.5089, allocations: 5.438 kB / 0.9541 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.5089, allocations: 5.328 kB / 0.9541 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.5089, allocations: 0 / 0.9541 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003103/0.5092, allocations: 213.5 kB / 0.9543 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.683e-05/0.5093, allocations: 83.8 kB / 0.9544 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.358e-05/0.5093, allocations: 14.58 kB / 0.9544 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.148e-05/0.5094, allocations: 7.562 kB / 0.9544 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.775e-05/0.5094, allocations: 18.16 kB / 0.9544 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.5094, allocations: 7.688 kB / 0.9544 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.484e-05/0.5095, allocations: 88.83 kB / 0.9545 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5095, allocations: 5.094 kB / 0.9545 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001971/0.5097, allocations: 15.09 kB / 0.9545 GB, free: 4.594 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.0004525/0.5101, allocations: 0.7548 MB / 0.9553 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001864/0.5103, allocations: 92.86 kB / 0.9554 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.5103, allocations: 0 / 0.9554 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.5104, allocations: 69.28 kB / 0.9554 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001823/0.5106, allocations: 13.16 kB / 0.9554 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.5118, allocations: 1.494 MB / 0.9569 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.119e-05/0.5119, allocations: 0.6911 MB / 0.9576 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.052e-05/0.5119, allocations: 11.94 kB / 0.9576 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.242e-05/0.512, allocations: 19.69 kB / 0.9576 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.512, allocations: 5.25 kB / 0.9576 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1785/0.6905, allocations: 1.983 MB / 0.9596 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001277/0.6906, allocations: 209.5 kB / 0.9598 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.714/2.405, allocations: 1.031 kB / 0.9598 GB, free: 0.5312 MB / 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