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.001189/0.001189, allocations: 99.94 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.001478/0.001478, allocations: 177.3 kB / 15.95 MB, free: 216 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.3/1.3, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.349/2.349, allocations: 409.2 MB / 0.6838 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004899/0.00049, allocations: 11.98 kB / 0.8375 GB, free: 6.484 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.035/1.036, allocations: 146.8 MB / 0.9809 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001755/1.038, allocations: 1.271 MB / 0.9821 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.000625/1.038, allocations: 415.5 kB / 0.9825 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.42e-05/1.038, allocations: 0 / 0.9825 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.995e-05/1.038, allocations: 3.938 kB / 0.9825 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.577e-05/1.038, allocations: 19.95 kB / 0.9825 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001797/1.039, allocations: 23.92 kB / 0.9826 GB, free: 4.488 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.742e-05/1.039, allocations: 35.95 kB / 0.9826 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.563e-05/1.039, allocations: 15.97 kB / 0.9826 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.68e-05/1.039, allocations: 31.91 kB / 0.9826 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.631e-05/1.039, allocations: 31.84 kB / 0.9827 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.654e-05/1.039, allocations: 4 kB / 0.9827 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.168e-05/1.039, allocations: 0 / 0.9827 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.19e-05/1.039, allocations: 11.98 kB / 0.9827 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.501e-05/1.039, allocations: 37.64 kB / 0.9827 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 7.468e-05/1.039, allocations: 46.14 kB / 0.9828 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/1.039, allocations: 0 / 0.9828 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.533e-06/1.039, allocations: 0 / 0.9828 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.847e-06/1.039, allocations: 0 / 0.9828 GB, free: 4.273 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.0005058/1.04, allocations: 367.1 kB / 0.9831 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/1.04, allocations: 8.031 kB / 0.9831 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.288e-05/1.04, allocations: 38.56 kB / 0.9832 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.085e-05/1.04, allocations: 7.906 kB / 0.9832 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/1.04, allocations: 171 kB / 0.9833 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/1.04, allocations: 0 / 0.9833 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/1.04, allocations: 12 kB / 0.9833 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/1.04, allocations: 85.53 kB / 0.9834 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/1.04, allocations: 4 kB / 0.9834 GB, free: 3.492 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/1.04, allocations: 3.984 kB / 0.9834 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/1.04, allocations: 0 / 0.9834 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001347/1.04, allocations: 47.97 kB / 0.9835 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005215/1.041, allocations: 320.7 kB / 0.9838 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002492/1.041, allocations: 110.5 kB / 0.9839 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.385e-05/1.041, allocations: 0 / 0.9839 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002551/1.041, allocations: 123.2 kB / 0.984 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/1.041, allocations: 0 / 0.984 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0003832/1.042, allocations: 185.4 kB / 0.9842 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/1.042, allocations: 55.41 kB / 0.9842 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.976e-05/1.042, allocations: 109.8 kB / 0.9843 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/1.042, allocations: 29.7 kB / 0.9844 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.358e-05/1.042, allocations: 88.36 kB / 0.9845 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.238e-05/1.042, allocations: 31.56 kB / 0.9845 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.253e-06/1.042, allocations: 4 kB / 0.9845 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000107/1.042, allocations: 318.8 kB / 0.9848 GB, free: 1.977 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.795e-05/1.042, allocations: 31.98 kB / 0.9848 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.49e-05/1.042, allocations: 48.83 kB / 0.9849 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.307e-05/1.042, allocations: 31.98 kB / 0.9849 GB, free: 1.863 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/1.042, allocations: 0 / 0.9849 GB, free: 1.863 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002107/1.043, allocations: 117.5 kB / 0.985 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/1.043, allocations: 8.922 kB / 0.985 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/1.043, allocations: 0 / 0.985 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/1.043, allocations: 0 / 0.985 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.827e-05/1.043, allocations: 15.94 kB / 0.985 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/1.043, allocations: 4 kB / 0.985 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.589e-05/1.043, allocations: 19.89 kB / 0.9851 GB, free: 1.695 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/1.043, allocations: 0 / 0.9851 GB, free: 1.695 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 9.659e-05/1.043, allocations: 117.8 kB / 0.9852 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.011e-05/1.043, allocations: 15.84 kB / 0.9852 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.363e-05/1.043, allocations: 12.38 kB / 0.9852 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/1.043, allocations: 0 / 0.9852 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/1.043, allocations: 8 kB / 0.9852 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/1.043, allocations: 0 / 0.9852 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001658/1.043, allocations: 193.7 kB / 0.9854 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/1.043, allocations: 0 / 0.9854 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.881e-05/1.043, allocations: 15.98 kB / 0.9854 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/1.043, allocations: 7.891 kB / 0.9854 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/1.043, allocations: 4 kB / 0.9854 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/1.043, allocations: 4 kB / 0.9854 GB, free: 1.262 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/1.043, allocations: 3.984 kB / 0.9854 GB, free: 1.258 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003838/1.044, allocations: 216.9 kB / 0.9856 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.12e-05/1.044, allocations: 81.14 kB / 0.9857 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.875e-05/1.044, allocations: 11.94 kB / 0.9857 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.989e-05/1.044, allocations: 8 kB / 0.9857 GB, free: 0.9102 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.457e-05/1.044, allocations: 11.97 kB / 0.9857 GB, free: 0.8984 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/1.044, allocations: 12.06 kB / 0.9858 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.334e-05/1.044, allocations: 91.27 kB / 0.9858 GB, free: 0.7969 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2e-07/1.044, allocations: 3.938 kB / 0.9858 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002094/1.044, allocations: 19.91 kB / 0.9859 GB, free: 0.7734 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.0006681/1.045, allocations: 0.7536 MB / 0.9866 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002198/1.045, allocations: 99.94 kB / 0.9867 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/1.045, allocations: 0 / 0.9867 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000125/1.045, allocations: 67.97 kB / 0.9868 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000163/1.046, allocations: 15.95 kB / 0.9868 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/1.047, allocations: 0.8244 MB / 0.9876 GB, free: 14.94 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002231/1.047, allocations: 0.6965 MB / 0.9883 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.587e-05/1.047, allocations: 8.656 kB / 0.9883 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.332e-05/1.047, allocations: 19.44 kB / 0.9883 GB, free: 14.19 MB / 0.7481 GB Notification: Performance of SimCode: time 2.5e-07/1.047, allocations: 4 kB / 0.9883 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01157/1.059, allocations: 1.855 MB / 0.9901 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001853/1.059, allocations: 201.8 kB / 0.9903 GB, free: 12.26 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.758/2.817, allocations: 0 / 0.9903 GB, free: 12.26 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