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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.006925/0.006925, allocations: 100.7 kB / 15.73 MB, free: 6.039 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.001604/0.001604, allocations: 186.9 kB / 16.67 MB, free: 5.977 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.458/2.458, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 63.94 kB / 0.9504 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2893, allocations: 140.4 MB / 1.087 GB, free: 2.09 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002837/0.2922, allocations: 1.565 MB / 1.089 GB, free: 0.5078 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008134/0.2931, allocations: 444.4 kB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.798e-05/0.2931, allocations: 0 / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.558e-05/0.2932, allocations: 3.938 kB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.865e-05/0.2933, allocations: 11.92 kB / 1.089 GB, free: 56 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002259/0.2935, allocations: 31.91 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001329/0.2937, allocations: 75.77 kB / 1.09 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.2938, allocations: 15.97 kB / 1.09 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.2939, allocations: 31.92 kB / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.016e-05/0.294, allocations: 31.89 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.019e-05/0.294, allocations: 7.938 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.427e-05/0.2941, allocations: 8 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.945e-05/0.2941, allocations: 23.92 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.637e-05/0.2942, allocations: 31.86 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001232/0.2943, allocations: 58.64 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.2943, allocations: 4 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.714e-06/0.2943, allocations: 0 / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.202e-05/0.2943, allocations: 0 / 1.09 GB, free: 15.74 MB / 0.8575 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.0006339/0.295, allocations: 372.1 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.295, allocations: 12.03 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.32e-05/0.2951, allocations: 38.67 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.696e-05/0.2951, allocations: 8.938 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.2953, allocations: 168.3 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.33e-05/0.2953, allocations: 12.36 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.989e-05/0.2954, allocations: 4.375 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002088/0.2956, allocations: 85.7 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.2956, allocations: 0 / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.2956, allocations: 4 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.2956, allocations: 3.938 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001448/0.2958, allocations: 39.97 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005991/0.2964, allocations: 328.6 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000282/0.2967, allocations: 102.5 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.519e-05/0.2968, allocations: 44.84 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.2968, allocations: 0 / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003285/0.2971, allocations: 115.3 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.944e-06/0.2972, allocations: 3.938 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004146/0.2976, allocations: 177.4 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.2976, allocations: 55.41 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.874e-05/0.2977, allocations: 113.8 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.2978, allocations: 29.7 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.02e-05/0.2978, allocations: 88.36 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.026e-05/0.2979, allocations: 31.56 kB / 1.092 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.666e-05/0.2979, allocations: 25.7 kB / 1.092 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.298, allocations: 322.8 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.285e-05/0.2981, allocations: 27.98 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.441e-05/0.2982, allocations: 49.7 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.2984, allocations: 65.64 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2984, allocations: 0 / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002234/0.2986, allocations: 121.5 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.2986, allocations: 5.562 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2986, allocations: 4 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.2987, allocations: 0 / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.782e-05/0.2988, allocations: 15.98 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.2988, allocations: 4.312 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.07e-05/0.2989, allocations: 7.906 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.2989, allocations: 7.984 kB / 1.092 GB, free: 13.05 MB / 0.8575 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.0001163/0.299, allocations: 125.7 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.084e-05/0.299, allocations: 7.906 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.053e-05/0.2991, allocations: 8.375 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.2991, allocations: 0 / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2991, allocations: 8 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.2991, allocations: 3.984 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001594/0.2993, allocations: 197.7 kB / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.2993, allocations: 4 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.761e-05/0.2994, allocations: 8 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.2994, allocations: 0 / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.2994, allocations: 7.984 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.2994, allocations: 4 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.2994, allocations: 0 / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003918/0.2998, allocations: 224.7 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.879e-05/0.2999, allocations: 89.06 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.355e-05/0.2999, allocations: 0 / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.473e-05/0.3, allocations: 11.98 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.825e-05/0.3, allocations: 11.98 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.3001, allocations: 11.98 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.488e-05/0.3001, allocations: 83.27 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3001, allocations: 4.062 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000214/0.3003, allocations: 23.91 kB / 1.093 GB, free: 12.14 MB / 0.8575 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.0006761/0.301, allocations: 0.7585 MB / 1.094 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002474/0.3013, allocations: 95.89 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3013, allocations: 0 / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.3014, allocations: 63.97 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002157/0.3016, allocations: 11.98 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.3033, allocations: 1.492 MB / 1.095 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.3035, allocations: 0.6885 MB / 1.096 GB, free: 8.887 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.048e-05/0.3036, allocations: 8.672 kB / 1.096 GB, free: 8.879 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.553e-05/0.3036, allocations: 23.42 kB / 1.096 GB, free: 8.855 MB / 0.8575 GB Notification: Performance of SimCode: time 3.8e-07/0.3036, allocations: 0 / 1.096 GB, free: 8.855 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02139/0.325, allocations: 2.301 MB / 1.098 GB, free: 6.668 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.232/8.557, allocations: 7.781 kB / 1.098 GB, free: 6.664 MB / 0.8575 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/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) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,soc.Q_flow,soc.SOC Variables in the result:der(soc.SOC),hf.k,hf.u,hf.y,q.amplitude,q.f,q.offset,q.phase,q.startTime,q.y,soc.E_nominal,soc.QEff_flow,soc.Q_flow,soc.SOC,soc.SOC_start,soc.charged,soc.discharged,soc.suspend,time