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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.001226/0.001226, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001306/0.001306, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.398/2.398, allocations: 390.3 MB / 0.6653 GB, free: 3.023 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003522/0.0003522, allocations: 8 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7021/0.7025, allocations: 142.3 MB / 0.9536 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001584/0.7041, allocations: 1.26 MB / 0.9548 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005631/0.7047, allocations: 425.3 kB / 0.9552 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.577e-05/0.7047, allocations: 0 / 0.9552 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.6e-05/0.7048, allocations: 4.891 kB / 0.9552 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.352e-05/0.7048, allocations: 5.328 kB / 0.9552 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001755/0.705, allocations: 25.11 kB / 0.9553 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.785e-05/0.7051, allocations: 42.88 kB / 0.9553 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.65e-05/0.7052, allocations: 7.969 kB / 0.9553 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.433e-05/0.7053, allocations: 33.28 kB / 0.9553 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.414e-05/0.7054, allocations: 28.5 kB / 0.9554 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.401e-05/0.7054, allocations: 2.781 kB / 0.9554 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.324e-05/0.7054, allocations: 3 kB / 0.9554 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.163e-05/0.7054, allocations: 18.72 kB / 0.9554 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.862e-05/0.7055, allocations: 31.11 kB / 0.9554 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.304e-05/0.7056, allocations: 40.78 kB / 0.9555 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.7056, allocations: 4 kB / 0.9555 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.094e-06/0.7056, allocations: 1.188 kB / 0.9555 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.508e-06/0.7056, allocations: 0 / 0.9555 GB, free: 6.59 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.0004566/0.7061, allocations: 365.1 kB / 0.9558 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.7061, allocations: 9.875 kB / 0.9558 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.443e-05/0.7061, allocations: 31.75 kB / 0.9559 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.213e-05/0.7062, allocations: 12.78 kB / 0.9559 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.511e-05/0.7063, allocations: 177.7 kB / 0.956 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.7063, allocations: 14.41 kB / 0.9561 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.519e-05/0.7063, allocations: 6.406 kB / 0.9561 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001808/0.7065, allocations: 86.84 kB / 0.9561 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-06/0.7065, allocations: 0 / 0.9561 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.7066, allocations: 0 / 0.9561 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.7066, allocations: 1.438 kB / 0.9561 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001329/0.7067, allocations: 58.27 kB / 0.9562 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004739/0.7072, allocations: 309.3 kB / 0.9565 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002526/0.7074, allocations: 109.3 kB / 0.9566 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.406e-05/0.7075, allocations: 5.312 kB / 0.9566 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002437/0.7077, allocations: 117.7 kB / 0.9567 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.463e-06/0.7077, allocations: 0 / 0.9567 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003701/0.7081, allocations: 180.9 kB / 0.9569 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/0.7081, allocations: 56.83 kB / 0.9569 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.37e-05/0.7082, allocations: 115.4 kB / 0.9571 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.7082, allocations: 27.98 kB / 0.9571 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.365e-05/0.7083, allocations: 90.22 kB / 0.9572 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.774e-05/0.7083, allocations: 31.81 kB / 0.9572 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.333e-06/0.7083, allocations: 5.031 kB / 0.9572 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.958e-05/0.7084, allocations: 316.6 kB / 0.9575 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.684e-05/0.7085, allocations: 34.48 kB / 0.9575 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.705e-05/0.7085, allocations: 52.75 kB / 0.9576 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.325e-05/0.7086, allocations: 23.66 kB / 0.9576 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.7086, allocations: 1.094 kB / 0.9576 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002054/0.7088, allocations: 123.9 kB / 0.9577 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.7089, allocations: 7.281 kB / 0.9577 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.7089, allocations: 0 / 0.9577 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.7089, allocations: 4.953 kB / 0.9577 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.586e-05/0.709, allocations: 15.33 kB / 0.9578 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.709, allocations: 0 / 0.9578 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.07e-05/0.7091, allocations: 9.75 kB / 0.9578 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.7091, allocations: 7.25 kB / 0.9578 GB, free: 4.449 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 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.soc.charged,soc.charged,$PRE.soc.discharged,soc.discharged,soc.suspend) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.912e-05/0.7092, allocations: 127.7 kB / 0.9579 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.73e-05/0.7092, allocations: 12.34 kB / 0.9579 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.76e-05/0.7092, allocations: 9.531 kB / 0.9579 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.7093, allocations: 6.109 kB / 0.9579 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.7093, allocations: 3.938 kB / 0.9579 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.7093, allocations: 0 / 0.9579 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001411/0.7094, allocations: 202.4 kB / 0.9581 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.7094, allocations: 0 / 0.9581 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.819e-05/0.7095, allocations: 8.781 kB / 0.9581 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.7095, allocations: 5.125 kB / 0.9581 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.7095, allocations: 9.172 kB / 0.9581 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.7096, allocations: 1.062 kB / 0.9581 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.7096, allocations: 3.953 kB / 0.9581 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004156/0.71, allocations: 219.1 kB / 0.9584 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.083e-05/0.71, allocations: 87.03 kB / 0.9584 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.636e-05/0.7101, allocations: 2.562 kB / 0.9584 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.841e-05/0.7101, allocations: 17.05 kB / 0.9585 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.535e-05/0.7102, allocations: 9.766 kB / 0.9585 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.55e-05/0.7102, allocations: 11.25 kB / 0.9585 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.675e-05/0.7103, allocations: 89.98 kB / 0.9586 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7103, allocations: 0 / 0.9586 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002358/0.7105, allocations: 19.16 kB / 0.9586 GB, free: 3.695 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006084/0.7111, allocations: 0.7659 MB / 0.9593 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002248/0.7114, allocations: 90.97 kB / 0.9594 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.7114, allocations: 0 / 0.9594 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.7115, allocations: 69.12 kB / 0.9595 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001631/0.7117, allocations: 12.7 kB / 0.9595 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.7127, allocations: 0.823 MB / 0.9603 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001737/0.7129, allocations: 0.6957 MB / 0.961 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.408e-05/0.713, allocations: 8.797 kB / 0.961 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.38e-05/0.713, allocations: 23.55 kB / 0.961 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.713, allocations: 0 / 0.961 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01133/0.7244, allocations: 1.864 MB / 0.9628 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001261/0.7245, allocations: 196.3 kB / 0.963 GB, free: 428 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.636/2.36, allocations: 1.188 kB / 0.963 GB, free: 428 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat does not exist to compare? outputFormat=mat