Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_latest_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.0009029/0.000903, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001104/0.001104, allocations: 168.7 kB / 15.95 MB, free: 204 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.371/1.371, allocations: 223.3 MB / 240 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.501/2.501, allocations: 409.4 MB / 0.684 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003218/0.0003219, allocations: 15.94 kB / 0.8378 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7025/0.7029, allocations: 146.8 MB / 0.9812 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002552/0.7055, allocations: 1.271 MB / 0.9824 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008211/0.7063, allocations: 423.3 kB / 0.9828 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.378e-05/0.7064, allocations: 0 / 0.9828 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.784e-05/0.7064, allocations: 0 / 0.9828 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.144e-05/0.7065, allocations: 11.94 kB / 0.9828 GB, free: 4.488 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000218/0.7068, allocations: 31.89 kB / 0.9828 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001097/0.7069, allocations: 55.84 kB / 0.9829 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.313e-05/0.707, allocations: 15.98 kB / 0.9829 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.7071, allocations: 27.91 kB / 0.9829 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.746e-05/0.7072, allocations: 27.84 kB / 0.983 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.256e-05/0.7072, allocations: 4 kB / 0.983 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.179e-05/0.7072, allocations: 4 kB / 0.983 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.179e-05/0.7073, allocations: 11.98 kB / 0.983 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.207e-05/0.7073, allocations: 37.7 kB / 0.983 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 8.241e-05/0.7074, allocations: 42.14 kB / 0.9831 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.7074, allocations: 3.938 kB / 0.9831 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.362e-06/0.7074, allocations: 0 / 0.9831 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.7074, allocations: 0 / 0.9831 GB, free: 4.227 MB / 0.7325 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.0005306/0.708, allocations: 367.1 kB / 0.9834 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 9.109e-05/0.7081, allocations: 8.031 kB / 0.9834 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.701e-05/0.7081, allocations: 42.55 kB / 0.9835 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.826e-05/0.7082, allocations: 7.906 kB / 0.9835 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.7083, allocations: 167 kB / 0.9836 GB, free: 3.551 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.7083, allocations: 4 kB / 0.9836 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.692e-05/0.7084, allocations: 11.98 kB / 0.9836 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001992/0.7086, allocations: 85.53 kB / 0.9837 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.7086, allocations: 0 / 0.9837 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.7086, allocations: 11.94 kB / 0.9837 GB, free: 3.434 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.7086, allocations: 4 kB / 0.9837 GB, free: 3.43 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001341/0.7088, allocations: 39.97 kB / 0.9838 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005459/0.7093, allocations: 308.8 kB / 0.9841 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.7096, allocations: 118.5 kB / 0.9842 GB, free: 2.914 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.086e-05/0.7097, allocations: 44.84 kB / 0.9842 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.7097, allocations: 4.141 kB / 0.9842 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003245/0.7101, allocations: 123.2 kB / 0.9844 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.653e-06/0.7101, allocations: 0 / 0.9844 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0004462/0.7105, allocations: 173.5 kB / 0.9845 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/0.7106, allocations: 55.41 kB / 0.9846 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.7107, allocations: 113.8 kB / 0.9847 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.7107, allocations: 33.64 kB / 0.9847 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.58e-05/0.7108, allocations: 84.38 kB / 0.9848 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.667e-05/0.7108, allocations: 31.55 kB / 0.9848 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.314e-06/0.7108, allocations: 4 kB / 0.9848 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.711, allocations: 322.8 kB / 0.9851 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.799e-05/0.711, allocations: 27.98 kB / 0.9852 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.037e-05/0.7111, allocations: 56.45 kB / 0.9852 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.098e-05/0.7112, allocations: 31.97 kB / 0.9852 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.7112, allocations: 0 / 0.9852 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002161/0.7115, allocations: 113.6 kB / 0.9854 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.7115, allocations: 4 kB / 0.9854 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.7115, allocations: 0 / 0.9854 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.7115, allocations: 3.938 kB / 0.9854 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.082e-05/0.7116, allocations: 23.92 kB / 0.9854 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.7116, allocations: 0 / 0.9854 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.435e-05/0.7117, allocations: 15.89 kB / 0.9854 GB, free: 1.602 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.7117, allocations: 8 kB / 0.9854 GB, free: 1.594 MB / 0.7325 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 0.0001059/0.7118, allocations: 119.2 kB / 0.9855 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.861e-05/0.7119, allocations: 11.86 kB / 0.9855 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.506e-05/0.7119, allocations: 12.36 kB / 0.9855 GB, free: 1.441 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.7119, allocations: 4 kB / 0.9855 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.7119, allocations: 4 kB / 0.9856 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.7119, allocations: 0 / 0.9856 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000184/0.7121, allocations: 197.5 kB / 0.9857 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.7121, allocations: 0 / 0.9857 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.318e-05/0.7122, allocations: 11.98 kB / 0.9857 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.688e-06/0.7123, allocations: 3.953 kB / 0.9858 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.7123, allocations: 11.94 kB / 0.9858 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.7123, allocations: 0 / 0.9858 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.7123, allocations: 3.938 kB / 0.9858 GB, free: 1.16 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004096/0.7127, allocations: 221.4 kB / 0.986 GB, free: 0.9258 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.05e-05/0.7128, allocations: 81.14 kB / 0.9861 GB, free: 0.8281 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.66e-05/0.7128, allocations: 3.953 kB / 0.9861 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.146e-05/0.7129, allocations: 15.98 kB / 0.9861 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.051e-05/0.7129, allocations: 16.03 kB / 0.9861 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.713, allocations: 8 kB / 0.9861 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.53e-05/0.713, allocations: 87.27 kB / 0.9862 GB, free: 0.6992 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.21e-07/0.713, allocations: 0 / 0.9862 GB, free: 0.6992 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002337/0.7133, allocations: 19.91 kB / 0.9862 GB, free: 0.6797 MB / 0.7325 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.0007095/0.714, allocations: 0.7625 MB / 0.9869 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002452/0.7143, allocations: 91.89 kB / 0.987 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.7143, allocations: 0 / 0.987 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.7144, allocations: 68.05 kB / 0.9871 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002273/0.7146, allocations: 17.66 kB / 0.9871 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.7158, allocations: 0.6845 MB / 0.9878 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.7161, allocations: 0.6926 MB / 0.9885 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.551e-05/0.7162, allocations: 8.609 kB / 0.9885 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.41e-05/0.7163, allocations: 23.42 kB / 0.9885 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of SimCode: time 2.71e-07/0.7163, allocations: 4 kB / 0.9885 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01313/0.7294, allocations: 1.888 MB / 0.9903 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001782/0.7296, allocations: 204 kB / 0.9905 GB, free: 12.28 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/2.591, allocations: 0 / 0.9905 GB, free: 12.28 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat does not exist to compare? outputFormat=mat