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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001048/0.001048, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.007811/0.007811, allocations: 170 kB / 16.27 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.244/1.244, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.368/2.368, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004793/0.0004794, allocations: 11.88 kB / 0.9029 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2748, allocations: 159.6 MB / 1.059 GB, free: 4.852 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001589/0.2765, allocations: 1.294 MB / 1.06 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006408/0.2771, allocations: 447 kB / 1.06 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.42e-05/0.2772, allocations: 0 / 1.06 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.648e-05/0.2772, allocations: 0 / 1.06 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.549e-05/0.2773, allocations: 7.922 kB / 1.06 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001683/0.2775, allocations: 27.91 kB / 1.061 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.118e-05/0.2776, allocations: 67.78 kB / 1.061 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.725e-05/0.2777, allocations: 15.98 kB / 1.061 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.938e-05/0.2777, allocations: 27.92 kB / 1.061 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.869e-05/0.2778, allocations: 27.91 kB / 1.061 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.662e-05/0.2778, allocations: 0 / 1.061 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.317e-05/0.2779, allocations: 4 kB / 1.061 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.266e-05/0.2779, allocations: 19.91 kB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.856e-05/0.278, allocations: 53.56 kB / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.663e-05/0.2781, allocations: 60.03 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.2781, allocations: 4 kB / 1.061 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.292e-06/0.2781, allocations: 7.938 kB / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.266e-06/0.2781, allocations: 0 / 1.061 GB, free: 2.781 MB / 0.8106 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.000468/0.2786, allocations: 355.4 kB / 1.061 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.2786, allocations: 15.97 kB / 1.061 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.779e-05/0.2787, allocations: 38.69 kB / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.969e-05/0.2787, allocations: 8.844 kB / 1.061 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.231e-05/0.2788, allocations: 168.4 kB / 1.061 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.2788, allocations: 8.375 kB / 1.061 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.813e-05/0.2789, allocations: 8.375 kB / 1.061 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001735/0.279, allocations: 81.77 kB / 1.061 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.2791, allocations: 0 / 1.061 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.2791, allocations: 11.92 kB / 1.061 GB, free: 2 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.2791, allocations: 0 / 1.061 GB, free: 2 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001267/0.2792, allocations: 51.91 kB / 1.062 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005026/0.2797, allocations: 324.6 kB / 1.062 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002375/0.28, allocations: 102.6 kB / 1.062 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.151e-05/0.2801, allocations: 52.84 kB / 1.062 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.2801, allocations: 0 / 1.062 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002337/0.2803, allocations: 115.5 kB / 1.062 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.2803, allocations: 0 / 1.062 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0003687/0.2807, allocations: 185.4 kB / 1.062 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.2808, allocations: 55.41 kB / 1.062 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.608e-05/0.2808, allocations: 113.8 kB / 1.062 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.2809, allocations: 25.7 kB / 1.062 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.636e-05/0.2809, allocations: 88.38 kB / 1.063 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.088e-05/0.281, allocations: 27.61 kB / 1.063 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.914e-05/0.281, allocations: 17.72 kB / 1.063 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.2811, allocations: 330.8 kB / 1.063 GB, free: 424 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.647e-05/0.2812, allocations: 27.98 kB / 1.063 GB, free: 396 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.316e-05/0.2813, allocations: 49.7 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001318/0.2814, allocations: 65.64 kB / 1.063 GB, free: 268 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2814, allocations: 4 kB / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002094/0.2816, allocations: 117.5 kB / 1.063 GB, free: 140 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.2817, allocations: 5.875 kB / 1.063 GB, free: 136 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.2817, allocations: 4 kB / 1.063 GB, free: 132 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.868e-06/0.2817, allocations: 0 / 1.063 GB, free: 132 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.318e-05/0.2818, allocations: 23.86 kB / 1.063 GB, free: 108 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.2818, allocations: 4.312 kB / 1.063 GB, free: 104 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.874e-05/0.2819, allocations: 11.94 kB / 1.063 GB, free: 92 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/0.2819, allocations: 4 kB / 1.063 GB, free: 88 kB / 0.8106 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 0.0001089/0.282, allocations: 125.8 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/0.282, allocations: 7.906 kB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.773e-05/0.282, allocations: 12.38 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.282, allocations: 0 / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.2821, allocations: 0 / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.2821, allocations: 3.984 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001438/0.2822, allocations: 197.5 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2822, allocations: 4 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.248e-05/0.2823, allocations: 11.94 kB / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.2823, allocations: 4 kB / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.2823, allocations: 7.984 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.2823, allocations: 3.984 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2823, allocations: 0 / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003605/0.2827, allocations: 229.3 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.463e-05/0.2827, allocations: 89.03 kB / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.23e-05/0.2828, allocations: 4 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.81e-05/0.2829, allocations: 7.984 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.599e-05/0.2829, allocations: 15.98 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.2829, allocations: 7.984 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.966e-05/0.283, allocations: 87.22 kB / 1.064 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.61e-07/0.283, allocations: 4.062 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001924/0.2832, allocations: 20 kB / 1.064 GB, free: 15.16 MB / 0.8262 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.0006033/0.2838, allocations: 0.7646 MB / 1.065 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002096/0.284, allocations: 87.91 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.284, allocations: 0 / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.2841, allocations: 71.91 kB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001897/0.2843, allocations: 19.86 kB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/0.2858, allocations: 1.537 MB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002338/0.286, allocations: 0.6926 MB / 1.067 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.728e-05/0.2861, allocations: 8.672 kB / 1.067 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.792e-05/0.2861, allocations: 24.3 kB / 1.067 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of SimCode: time 3.5e-07/0.2861, allocations: 3.938 kB / 1.067 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.263/1.549, allocations: 1.918 MB / 1.069 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002127/1.549, allocations: 227.1 kB / 1.069 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.776/3.325, allocations: 0 / 1.069 GB, free: 9.809 MB / 0.8262 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/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) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches