Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.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.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.NormalizedHeatFlowRate,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",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.007779/0.007779, allocations: 99.62 kB / 15.73 MB, free: 6.445 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.002033/0.002033, allocations: 191.3 kB / 16.67 MB, free: 6.348 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.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.523/2.523, allocations: 437.1 MB / 0.7105 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 63.91 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2593, allocations: 151.6 MB / 1.166 GB, free: 7.344 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.003345/0.2627, allocations: 1.985 MB / 1.168 GB, free: 5.34 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001348/0.264, allocations: 0.702 MB / 1.169 GB, free: 4.629 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.2642, allocations: 8 kB / 1.169 GB, free: 4.621 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.2644, allocations: 19.73 kB / 1.169 GB, free: 4.602 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.74e-05/0.2645, allocations: 19.81 kB / 1.169 GB, free: 4.582 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003764/0.2649, allocations: 87.77 kB / 1.169 GB, free: 4.496 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002091/0.2651, allocations: 139.7 kB / 1.169 GB, free: 4.359 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00019/0.2653, allocations: 88.53 kB / 1.169 GB, free: 4.273 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001294/0.2654, allocations: 63.72 kB / 1.169 GB, free: 4.211 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.2656, allocations: 67.67 kB / 1.169 GB, free: 4.145 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.31e-05/0.2656, allocations: 16 kB / 1.169 GB, free: 4.129 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001584/0.2658, allocations: 71.89 kB / 1.169 GB, free: 4.059 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.2659, allocations: 59.83 kB / 1.169 GB, free: 4 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 9.147e-05/0.266, allocations: 95.34 kB / 1.169 GB, free: 3.906 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003234/0.2663, allocations: 271.1 kB / 1.17 GB, free: 3.641 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.2663, allocations: 0 / 1.17 GB, free: 3.641 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2663, allocations: 0 / 1.17 GB, free: 3.641 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.157e-06/0.2663, allocations: 0 / 1.17 GB, free: 3.641 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007804/0.2671, allocations: 0.5527 MB / 1.17 GB, free: 3.039 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.2672, allocations: 12.03 kB / 1.17 GB, free: 3.027 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.696e-05/0.2672, allocations: 46.73 kB / 1.17 GB, free: 2.973 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001613/0.2688, allocations: 420 kB / 1.171 GB, free: 2.562 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003799/0.2692, allocations: 312 kB / 1.171 GB, free: 2.223 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.104e-05/0.2693, allocations: 80.11 kB / 1.171 GB, free: 2.133 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.124e-05/0.2694, allocations: 12.38 kB / 1.171 GB, free: 2.121 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007931/0.2702, allocations: 383.6 kB / 1.172 GB, free: 1.742 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.2702, allocations: 0 / 1.172 GB, free: 1.742 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.302e-05/0.2702, allocations: 4 kB / 1.172 GB, free: 1.738 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.2702, allocations: 4 kB / 1.172 GB, free: 1.734 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001231/0.2715, allocations: 0.5385 MB / 1.172 GB, free: 1.195 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.273, allocations: 1.001 MB / 1.173 GB, free: 140 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006691/0.2737, allocations: 298.3 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000593/0.2743, allocations: 268.6 kB / 1.174 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.2743, allocations: 0 / 1.174 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.353e-05/0.2744, allocations: 38.56 kB / 1.174 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.2744, allocations: 0 / 1.174 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.001893/0.2763, allocations: 0.782 MB / 1.174 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/0.2763, allocations: 55.39 kB / 1.174 GB, free: 14.67 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002904/0.2766, allocations: 302.6 kB / 1.175 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.708e-05/0.2767, allocations: 29.7 kB / 1.175 GB, free: 14.33 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.586e-05/0.2768, allocations: 156.4 kB / 1.175 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.05e-05/0.2768, allocations: 23.84 kB / 1.175 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.579e-05/0.2769, allocations: 33.67 kB / 1.175 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.277, allocations: 334.8 kB / 1.175 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005886/0.2776, allocations: 259.8 kB / 1.175 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005747/0.2782, allocations: 259.7 kB / 1.176 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/0.2792, allocations: 440.8 kB / 1.176 GB, free: 12.83 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2793, allocations: 4 kB / 1.176 GB, free: 12.83 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.00123/0.2805, allocations: 0.5361 MB / 1.177 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.2805, allocations: 10.44 kB / 1.177 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2805, allocations: 3.984 kB / 1.177 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.2806, allocations: 11.98 kB / 1.177 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003884/0.281, allocations: 91.83 kB / 1.177 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.281, allocations: 0 / 1.177 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003006/0.2813, allocations: 79.77 kB / 1.177 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.743e-05/0.2813, allocations: 7.984 kB / 1.177 GB, free: 12.09 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001381/0.2815, allocations: 150.6 kB / 1.177 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.733e-05/0.2815, allocations: 19.86 kB / 1.177 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.268e-05/0.2816, allocations: 25.7 kB / 1.177 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.2816, allocations: 0 / 1.177 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.2816, allocations: 0 / 1.177 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.2816, allocations: 4 kB / 1.177 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004334/0.282, allocations: 432.3 kB / 1.177 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.282, allocations: 8 kB / 1.177 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003533/0.2824, allocations: 87.83 kB / 1.178 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.2824, allocations: 0 / 1.178 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.2824, allocations: 7.984 kB / 1.178 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2825, allocations: 4 kB / 1.178 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2825, allocations: 0 / 1.178 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.2837, allocations: 0.6317 MB / 1.178 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.922e-05/0.2838, allocations: 96.97 kB / 1.178 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.335e-05/0.2839, allocations: 11.92 kB / 1.178 GB, free: 10.53 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003367/0.2842, allocations: 71.88 kB / 1.178 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.918e-05/0.2843, allocations: 11.97 kB / 1.178 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.286e-05/0.2843, allocations: 3.984 kB / 1.178 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0002386/0.2846, allocations: 225.9 kB / 1.179 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2846, allocations: 0 / 1.179 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003268/0.2849, allocations: 39.89 kB / 1.179 GB, free: 10.19 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 0.001572/0.2865, allocations: 1.169 MB / 1.18 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001247/0.2878, allocations: 0.5268 MB / 1.18 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2878, allocations: 0 / 1.18 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0006082/0.2884, allocations: 275.7 kB / 1.181 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.2887, allocations: 16.5 kB / 1.181 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006086/0.2948, allocations: 3.902 MB / 1.184 GB, free: 4.203 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003541/0.2951, allocations: 0.7474 MB / 1.185 GB, free: 3.43 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0002088/0.2954, allocations: 57.42 kB / 1.185 GB, free: 3.371 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001594/0.2955, allocations: 83.38 kB / 1.185 GB, free: 3.293 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.2955, allocations: 0 / 1.185 GB, free: 3.293 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02177/0.3173, allocations: 5.063 MB / 1.19 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.469/7.786, allocations: 12.39 kB / 1.19 GB, free: 14.36 MB / 0.9512 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[502]=7200.000000 File[1199]=4498.560000 Error: Could not read variable norQSta.canMelt in file Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv. Warning: Get data of variable norQSta.canMelt from file Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv failed! Error: Could not read variable norQSta.SOC in file Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv. Warning: Get data of variable norQSta.SOC from file Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv failed! " Variables in the reference:time,norQSta.qNor,norQSta.canMelt,norQSta.SOC Variables in the result:time,fra.y,lmtd.y,norQSta.qNor,coeCha[1],coeCha[2]