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.0008141/0.0008141, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.0008986/0.0008987, allocations: 172.7 kB / 15.95 MB, free: 208 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.317/1.317, allocations: 223.3 MB / 240 MB, free: 5.449 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.4/2.4, allocations: 390.4 MB / 0.6655 GB, free: 2.867 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003773/0.0003774, allocations: 8 kB / 0.8149 GB, free: 14.06 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6711/0.6715, allocations: 142.3 MB / 0.9539 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001797/0.6734, allocations: 1.271 MB / 0.9551 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006857/0.6741, allocations: 418.5 kB / 0.9555 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.609e-05/0.6742, allocations: 1.156 kB / 0.9555 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.195e-05/0.6742, allocations: 3.984 kB / 0.9555 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.7e-05/0.6743, allocations: 9.328 kB / 0.9555 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002038/0.6745, allocations: 20.83 kB / 0.9555 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.771e-05/0.6746, allocations: 61.12 kB / 0.9556 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.646e-05/0.6747, allocations: 12.52 kB / 0.9556 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.6748, allocations: 34.16 kB / 0.9556 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.178e-05/0.6749, allocations: 30.97 kB / 0.9557 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.907e-05/0.6749, allocations: 3.969 kB / 0.9557 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.386e-05/0.675, allocations: 2.781 kB / 0.9557 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.095e-05/0.675, allocations: 14.81 kB / 0.9557 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.813e-05/0.675, allocations: 31.08 kB / 0.9557 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.042e-05/0.6751, allocations: 44.62 kB / 0.9558 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.6751, allocations: 7.938 kB / 0.9558 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.493e-06/0.6751, allocations: 1.062 kB / 0.9558 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.617e-06/0.6752, allocations: 0 / 0.9558 GB, free: 6.543 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.0004722/0.6756, allocations: 364.2 kB / 0.9561 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.6757, allocations: 8.969 kB / 0.9561 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.946e-05/0.6757, allocations: 31.84 kB / 0.9562 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.685e-05/0.6758, allocations: 16.52 kB / 0.9562 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.623e-05/0.6759, allocations: 182.2 kB / 0.9563 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.6759, allocations: 5.969 kB / 0.9563 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.441e-05/0.6759, allocations: 5.469 kB / 0.9564 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001846/0.6761, allocations: 87.42 kB / 0.9564 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.6761, allocations: 0 / 0.9564 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.6762, allocations: 5.047 kB / 0.9564 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.6762, allocations: 1.156 kB / 0.9564 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001316/0.6763, allocations: 54.67 kB / 0.9565 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005048/0.6768, allocations: 313.8 kB / 0.9568 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002663/0.6771, allocations: 100.4 kB / 0.9569 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.831e-05/0.6772, allocations: 51.03 kB / 0.9569 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.6772, allocations: 1.469 kB / 0.9569 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002665/0.6775, allocations: 122.2 kB / 0.9571 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.613e-06/0.6775, allocations: 0 / 0.9571 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004026/0.6779, allocations: 180.6 kB / 0.9572 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.967e-05/0.678, allocations: 57.42 kB / 0.9573 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.793e-05/0.678, allocations: 110.8 kB / 0.9574 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.6781, allocations: 32.17 kB / 0.9574 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.319e-05/0.6781, allocations: 85.28 kB / 0.9575 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.005e-05/0.6781, allocations: 32.38 kB / 0.9575 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.192e-06/0.6782, allocations: 5 kB / 0.9575 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.614e-05/0.6782, allocations: 317.3 kB / 0.9578 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.857e-05/0.6783, allocations: 28.95 kB / 0.9579 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.164e-05/0.6784, allocations: 51.47 kB / 0.9579 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.912e-05/0.6785, allocations: 28.5 kB / 0.9579 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.6785, allocations: 4 kB / 0.9579 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000201/0.6787, allocations: 120.4 kB / 0.9581 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.6787, allocations: 4.938 kB / 0.9581 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.6787, allocations: 4.984 kB / 0.9581 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.6787, allocations: 5.094 kB / 0.9581 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.185e-05/0.6788, allocations: 22.92 kB / 0.9581 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.555e-06/0.6788, allocations: 1.125 kB / 0.9581 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.21e-05/0.6789, allocations: 13.16 kB / 0.9581 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.6789, allocations: 2.719 kB / 0.9581 GB, free: 4.371 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 7.815e-05/0.679, allocations: 124.8 kB / 0.9582 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.694e-05/0.679, allocations: 4 kB / 0.9582 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.861e-05/0.6791, allocations: 10.84 kB / 0.9582 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.6791, allocations: 9.297 kB / 0.9583 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.6791, allocations: 0 / 0.9583 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.6791, allocations: 0 / 0.9583 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.6792, allocations: 201.5 kB / 0.9584 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.6793, allocations: 5.094 kB / 0.9585 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.556e-05/0.6793, allocations: 7.781 kB / 0.9585 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.369e-06/0.6793, allocations: 1.031 kB / 0.9585 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.6794, allocations: 10.08 kB / 0.9585 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.6794, allocations: 0 / 0.9585 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.6794, allocations: 5.141 kB / 0.9585 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000344/0.6797, allocations: 218.5 kB / 0.9587 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.512e-05/0.6798, allocations: 78.86 kB / 0.9588 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.6798, allocations: 11.58 kB / 0.9588 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.459e-05/0.6799, allocations: 7.578 kB / 0.9588 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.858e-05/0.6799, allocations: 19.09 kB / 0.9588 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.6799, allocations: 7.547 kB / 0.9588 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.477e-05/0.68, allocations: 84.81 kB / 0.9589 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.68, allocations: 4.062 kB / 0.9589 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002028/0.6802, allocations: 19.81 kB / 0.9589 GB, free: 3.633 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.0005356/0.6807, allocations: 0.7628 MB / 0.9597 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002073/0.6809, allocations: 94.77 kB / 0.9597 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.681, allocations: 0 / 0.9597 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001159/0.6811, allocations: 67.28 kB / 0.9598 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001993/0.6813, allocations: 16.23 kB / 0.9598 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008879/0.6822, allocations: 0.6836 MB / 0.9605 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000121/0.6823, allocations: 0.6906 MB / 0.9612 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.162e-05/0.6824, allocations: 16.69 kB / 0.9612 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.748e-05/0.6824, allocations: 19.06 kB / 0.9612 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.6824, allocations: 0 / 0.9612 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01112/0.6936, allocations: 1.883 MB / 0.963 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001303/0.6937, allocations: 203 kB / 0.9632 GB, free: 500 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.568, allocations: 0 / 0.9632 GB, free: 500 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