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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001119/0.001119, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 197 kB / 16.53 MB, free: 6.664 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.704/2.704, allocations: 469.4 MB / 0.742 GB, free: 7.695 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 66.91 kB / 0.9083 GB, free: 34.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2642, allocations: 159.2 MB / 1.064 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.0029/0.2671, allocations: 1.56 MB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007019/0.2679, allocations: 452.6 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.53e-05/0.2679, allocations: 0 / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.932e-05/0.268, allocations: 3.938 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.816e-05/0.2681, allocations: 11.86 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001895/0.2683, allocations: 31.97 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.354e-05/0.2684, allocations: 67.78 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.464e-05/0.2685, allocations: 19.97 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.2686, allocations: 35.86 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.775e-05/0.2687, allocations: 27.91 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.935e-05/0.2687, allocations: 4 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.761e-05/0.2687, allocations: 8 kB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.931e-05/0.2687, allocations: 23.91 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.906e-05/0.2688, allocations: 27.86 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001049/0.2689, allocations: 64.05 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2689, allocations: 0 / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2689, allocations: 4 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.11e-06/0.2689, allocations: 0 / 1.066 GB, free: 12.14 MB / 0.8262 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.0005289/0.2695, allocations: 375.3 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.2695, allocations: 8.031 kB / 1.066 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.635e-05/0.2696, allocations: 42.69 kB / 1.066 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.275e-05/0.2696, allocations: 8.938 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00011/0.2697, allocations: 176.2 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.2697, allocations: 384 / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.754e-05/0.2698, allocations: 16.38 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001827/0.27, allocations: 81.77 kB / 1.067 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.27, allocations: 3.938 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.27, allocations: 0 / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.27, allocations: 0 / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001308/0.2701, allocations: 47.91 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005366/0.2707, allocations: 324.7 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/0.2709, allocations: 98.53 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.988e-05/0.2711, allocations: 44.84 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.415e-05/0.2711, allocations: 4 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002373/0.2713, allocations: 123.4 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.2713, allocations: 0 / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0003849/0.2717, allocations: 173.5 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.536e-05/0.2718, allocations: 51.41 kB / 1.067 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.747e-05/0.2718, allocations: 113.8 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.2719, allocations: 29.69 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.96e-05/0.2719, allocations: 88.38 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.94e-05/0.272, allocations: 23.62 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.654e-05/0.272, allocations: 33.7 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.736e-05/0.2721, allocations: 326.7 kB / 1.068 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.876e-05/0.2722, allocations: 27.98 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.593e-05/0.2723, allocations: 45.7 kB / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001461/0.2725, allocations: 69.69 kB / 1.068 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2725, allocations: 0 / 1.068 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002051/0.2727, allocations: 110 kB / 1.068 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.2727, allocations: 4 kB / 1.068 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.2727, allocations: 0 / 1.068 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.2727, allocations: 4 kB / 1.068 GB, free: 9.492 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.664e-05/0.2728, allocations: 11.98 kB / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.2728, allocations: 3.938 kB / 1.068 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.848e-05/0.2729, allocations: 23.83 kB / 1.068 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.2729, allocations: 4 kB / 1.068 GB, free: 9.449 MB / 0.8262 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 8.909e-05/0.273, allocations: 123.1 kB / 1.068 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.944e-05/0.273, allocations: 15.91 kB / 1.068 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.749e-05/0.2731, allocations: 8.375 kB / 1.068 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2731, allocations: 0 / 1.068 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.2731, allocations: 0 / 1.068 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.2731, allocations: 3.984 kB / 1.068 GB, free: 9.293 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001539/0.2733, allocations: 201.5 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2733, allocations: 4 kB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.916e-05/0.2734, allocations: 11.98 kB / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.2734, allocations: 0 / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.2734, allocations: 4 kB / 1.069 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.2734, allocations: 3.938 kB / 1.069 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2734, allocations: 0 / 1.069 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003709/0.2738, allocations: 224.9 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.839e-05/0.2738, allocations: 81.17 kB / 1.069 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.2739, allocations: 8.031 kB / 1.069 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.613e-05/0.2739, allocations: 7.984 kB / 1.069 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.115e-05/0.274, allocations: 11.98 kB / 1.069 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.274, allocations: 7.984 kB / 1.069 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.998e-05/0.2741, allocations: 87.28 kB / 1.069 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2741, allocations: 0 / 1.069 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002233/0.2743, allocations: 23.91 kB / 1.069 GB, free: 8.543 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.0006305/0.2749, allocations: 0.7608 MB / 1.07 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002256/0.2752, allocations: 91.91 kB / 1.07 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.2752, allocations: 0 / 1.07 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001184/0.2753, allocations: 75.91 kB / 1.07 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001959/0.2755, allocations: 15.92 kB / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001519/0.277, allocations: 1.478 MB / 1.071 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002497/0.2773, allocations: 0.6922 MB / 1.072 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.31e-05/0.2774, allocations: 12.66 kB / 1.072 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.439e-05/0.2774, allocations: 27.42 kB / 1.072 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.2774, allocations: 0 / 1.072 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01728/0.2947, allocations: 2.234 MB / 1.074 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.148/7.443, allocations: 0.75 kB / 1.074 GB, free: 3.137 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 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.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[501]=3600.000000 File[1204]=2249.280000 Error: Could not read variable soc.Q_flow in file Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv. Warning: Get data of variable soc.Q_flow from file Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.csv failed! " Variables in the reference:time,soc.Q_flow,soc.SOC Variables in the result:time,soc.SOC