Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData",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.004671/0.004671, allocations: 99.33 kB / 15.73 MB, free: 6.5 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.001315/0.001315, allocations: 191.7 kB / 16.67 MB, free: 6.391 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00243/0.002429, allocations: 290.6 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.96/0.96, allocations: 169.3 MB / 0.4983 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002607/0.002607, allocations: 100.2 kB / 0.681 GB, free: 15.97 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1623/0.1649, allocations: 86.97 MB / 0.7659 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.5073/0.6722, allocations: 176 MB / 0.9378 GB, free: 3 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.01683/0.6891, allocations: 12.74 MB / 0.9503 GB, free: 6.223 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009696/0.6901, allocations: 31.81 kB / 0.9503 GB, free: 6.191 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.001168/0.6913, allocations: 452.6 kB / 0.9507 GB, free: 5.746 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.002576/0.6939, allocations: 0.9624 MB / 0.9517 GB, free: 4.785 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.004209/0.6981, allocations: 1.856 MB / 0.9535 GB, free: 2.938 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.003008/0.7011, allocations: 2.416 MB / 0.9558 GB, free: 0.5117 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00219/0.7033, allocations: 1.627 MB / 0.9574 GB, free: 14.84 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003772/0.7071, allocations: 1.404 MB / 0.9588 GB, free: 13.47 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0013/0.7084, allocations: 0.8635 MB / 0.9596 GB, free: 12.6 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0002878/0.7087, allocations: 172 kB / 0.9598 GB, free: 12.43 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002805/0.7115, allocations: 1.427 MB / 0.9612 GB, free: 11 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.000509/0.712, allocations: 498.5 kB / 0.9617 GB, free: 10.52 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.001004/0.7131, allocations: 0.8474 MB / 0.9625 GB, free: 9.664 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.004105/0.7172, allocations: 2.784 MB / 0.9652 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.7172, allocations: 0 / 0.9652 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.824e-06/0.7172, allocations: 4 kB / 0.9652 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.531e-05/0.7172, allocations: 0 / 0.9652 GB, free: 6.871 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 346 * Number of variables: 346 Notification: Performance of Generate backend data structure: time 0.003448/0.7207, allocations: 2.064 MB / 0.9672 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.7207, allocations: 8.031 kB / 0.9672 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002429/0.721, allocations: 206.7 kB / 0.9674 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002437/0.7234, allocations: 418.5 kB / 0.9678 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001588/0.725, allocations: 1.028 MB / 0.9688 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.7251, allocations: 106.7 kB / 0.9689 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000171/0.7253, allocations: 132 kB / 0.9691 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002622/0.7279, allocations: 1.52 MB / 0.9706 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/0.728, allocations: 0 / 0.9706 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001337/0.7281, allocations: 60 kB / 0.9706 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.871e-05/0.7281, allocations: 32 kB / 0.9706 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002779/0.7309, allocations: 1.587 MB / 0.9722 GB, free: 15.52 MB / 0.7325 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007465/0.7384, allocations: 5.042 MB / 0.9771 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002658/0.7411, allocations: 1.522 MB / 0.9786 GB, free: 8.625 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008722/0.742, allocations: 482.9 kB / 0.9791 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007599/0.7427, allocations: 429.2 kB / 0.9795 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001296/0.744, allocations: 0.6958 MB / 0.9801 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=107): time 2.755e-06/0.7441, allocations: 0 / 0.9801 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of matching and sorting (n=107): time 0.004388/0.7485, allocations: 1.665 MB / 0.9818 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001382/0.7486, allocations: 208.8 kB / 0.982 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/0.7499, allocations: 0.8883 MB / 0.9828 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001038/0.75, allocations: 49.7 kB / 0.9829 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005423/0.7506, allocations: 0.6064 MB / 0.9835 GB, free: 3.43 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003847/0.751, allocations: 368.9 kB / 0.9838 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003258/0.7513, allocations: 198.5 kB / 0.984 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001677/0.7515, allocations: 341.9 kB / 0.9843 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007822/0.7523, allocations: 381.8 kB / 0.9847 GB, free: 2.152 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/0.7533, allocations: 0.5593 MB / 0.9853 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001722/0.755, allocations: 0.9371 MB / 0.9862 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.755, allocations: 4 kB / 0.9862 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002696/0.7577, allocations: 1.184 MB / 0.9873 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.7578, allocations: 8.406 kB / 0.9873 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.7578, allocations: 8.078 kB / 0.9873 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005523/0.7583, allocations: 80.78 kB / 0.9874 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.7594, allocations: 247.7 kB / 0.9877 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00216/0.7616, allocations: 1.658 MB / 0.9893 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009517/0.7625, allocations: 134.3 kB / 0.9894 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.944e-05/0.7626, allocations: 47.97 kB / 0.9895 GB, free: 13.04 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 15 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0006131/0.7633, allocations: 350.1 kB / 0.9898 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002361/0.7635, allocations: 127.2 kB / 0.9899 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00313/0.7666, allocations: 1.433 MB / 0.9913 GB, free: 11.11 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.359e-05/0.7667, allocations: 12 kB / 0.9913 GB, free: 11.1 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.7667, allocations: 0 / 0.9913 GB, free: 11.1 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.7667, allocations: 3.984 kB / 0.9913 GB, free: 11.1 MB / 0.7481 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004723/0.7714, allocations: 2.888 MB / 0.9941 GB, free: 8.125 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.7714, allocations: 7.984 kB / 0.9942 GB, free: 8.117 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009341/0.7724, allocations: 215.8 kB / 0.9944 GB, free: 7.906 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004197/0.7728, allocations: 76.72 kB / 0.9944 GB, free: 7.828 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.747e-05/0.7729, allocations: 31.98 kB / 0.9945 GB, free: 7.797 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00201/0.7749, allocations: 1.666 MB / 0.9961 GB, free: 5.988 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.7749, allocations: 0 / 0.9961 GB, free: 5.988 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002841/0.7778, allocations: 1.331 MB / 0.9974 GB, free: 4.637 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000619/0.7784, allocations: 363.8 kB / 0.9977 GB, free: 4.262 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/0.7786, allocations: 27.92 kB / 0.9978 GB, free: 4.234 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008625/0.7794, allocations: 85.55 kB / 0.9978 GB, free: 4.152 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.7796, allocations: 80.88 kB / 0.9979 GB, free: 4.074 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.7797, allocations: 51.97 kB / 0.998 GB, free: 4.023 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0008825/0.7806, allocations: 0.6189 MB / 0.9986 GB, free: 3.395 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7806, allocations: 0 / 0.9986 GB, free: 3.395 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001201/0.7819, allocations: 494.7 kB / 0.999 GB, free: 2.91 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004985/0.7868, allocations: 2.489 MB / 1.001 GB, free: 0.582 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002334/0.7892, allocations: 1.117 MB / 1.003 GB, free: 15.45 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 7.144e-06/0.7892, allocations: 0 / 1.003 GB, free: 15.45 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.7904, allocations: 0.684 MB / 1.003 GB, free: 14.76 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002101/0.7926, allocations: 0.5121 MB / 1.004 GB, free: 14.27 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01583/0.8084, allocations: 9.039 MB / 1.013 GB, free: 5.027 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001003/0.8094, allocations: 1.217 MB / 1.014 GB, free: 3.777 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001409/0.8109, allocations: 393.7 kB / 1.014 GB, free: 3.391 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008231/0.8117, allocations: 0.5695 MB / 1.015 GB, free: 2.82 MB / 0.7637 GB Notification: Performance of SimCode: time 8.82e-07/0.8117, allocations: 0 / 1.015 GB, free: 2.82 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07332/0.885, allocations: 33.47 MB / 1.047 GB, free: 1.84 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.05/13.93, allocations: 10.5 kB / 1.047 GB, free: 1.832 MB / 0.795 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)