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.004796/0.004796, allocations: 96.69 kB / 15.73 MB, free: 6.043 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.001151/0.001151, allocations: 193.2 kB / 16.67 MB, free: 5.969 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.258/1.258, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002085/0.002086, allocations: 270.9 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9182/0.9182, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 91.86 kB / 0.681 GB, free: 8 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1505, allocations: 86.97 MB / 0.7659 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.4897/0.6403, allocations: 176 MB / 0.9378 GB, free: 3.016 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.01479/0.6551, allocations: 12.73 MB / 0.9502 GB, free: 6.238 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001102/0.6563, allocations: 31.81 kB / 0.9503 GB, free: 6.207 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.001115/0.6574, allocations: 464.6 kB / 0.9507 GB, free: 5.75 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.002614/0.6601, allocations: 0.9875 MB / 0.9517 GB, free: 4.762 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.004115/0.6642, allocations: 1.864 MB / 0.9535 GB, free: 2.906 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.002462/0.6667, allocations: 2.43 MB / 0.9559 GB, free: 480 kB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001763/0.6684, allocations: 1.626 MB / 0.9575 GB, free: 14.8 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003432/0.6719, allocations: 1.455 MB / 0.9589 GB, free: 13.38 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001058/0.673, allocations: 0.8596 MB / 0.9597 GB, free: 12.52 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0002043/0.6732, allocations: 172 kB / 0.9599 GB, free: 12.35 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002487/0.6757, allocations: 1.423 MB / 0.9613 GB, free: 10.92 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003763/0.6761, allocations: 494.5 kB / 0.9617 GB, free: 10.44 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0007113/0.6768, allocations: 0.8552 MB / 0.9626 GB, free: 9.578 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.003146/0.6799, allocations: 2.78 MB / 0.9653 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.6799, allocations: 4 kB / 0.9653 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.233e-06/0.68, allocations: 3.938 kB / 0.9653 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.719e-05/0.68, allocations: 0 / 0.9653 GB, free: 6.785 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.003102/0.6831, allocations: 2.056 MB / 0.9673 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.6831, allocations: 16.02 kB / 0.9673 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002101/0.6833, allocations: 202.7 kB / 0.9675 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002474/0.6858, allocations: 419.4 kB / 0.9679 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001454/0.6873, allocations: 1.035 MB / 0.9689 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.413e-05/0.6874, allocations: 98.72 kB / 0.969 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000162/0.6875, allocations: 132 kB / 0.9692 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002329/0.6899, allocations: 1.524 MB / 0.9706 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.645e-05/0.6899, allocations: 0 / 0.9706 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001309/0.6901, allocations: 60 kB / 0.9707 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.437e-05/0.6901, allocations: 32 kB / 0.9707 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002564/0.6927, allocations: 1.595 MB / 0.9723 GB, free: 15.43 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.006271/0.6989, allocations: 5.038 MB / 0.9772 GB, free: 10.14 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002469/0.7014, allocations: 1.526 MB / 0.9787 GB, free: 8.535 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007865/0.7022, allocations: 482.9 kB / 0.9792 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006689/0.7029, allocations: 425.3 kB / 0.9796 GB, free: 7.574 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001156/0.7041, allocations: 0.688 MB / 0.9802 GB, free: 6.871 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=107): time 2.485e-06/0.7041, allocations: 8 kB / 0.9802 GB, free: 6.863 MB / 0.7325 GB Notification: Performance of matching and sorting (n=107): time 0.004049/0.7081, allocations: 1.661 MB / 0.9819 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.154e-05/0.7082, allocations: 204.8 kB / 0.9821 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00106/0.7093, allocations: 0.8922 MB / 0.9829 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 9.023e-05/0.7094, allocations: 53.7 kB / 0.983 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004251/0.7098, allocations: 0.5986 MB / 0.9836 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002643/0.7101, allocations: 372.8 kB / 0.9839 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002811/0.7104, allocations: 194.6 kB / 0.9841 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.7105, allocations: 345.9 kB / 0.9844 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007098/0.7112, allocations: 377.8 kB / 0.9848 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008719/0.7121, allocations: 0.5689 MB / 0.9854 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00156/0.7137, allocations: 0.941 MB / 0.9863 GB, free: 468 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.7137, allocations: 0 / 0.9863 GB, free: 468 kB / 0.7325 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002503/0.7162, allocations: 1.188 MB / 0.9874 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.7162, allocations: 4 kB / 0.9874 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.7162, allocations: 4 kB / 0.9874 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005573/0.7168, allocations: 89.17 kB / 0.9875 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.7178, allocations: 247.7 kB / 0.9878 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001918/0.7198, allocations: 1.653 MB / 0.9894 GB, free: 13.12 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009432/0.7207, allocations: 135.2 kB / 0.9895 GB, free: 12.99 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.741e-05/0.7208, allocations: 43.97 kB / 0.9895 GB, free: 12.95 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.0005936/0.7214, allocations: 342.1 kB / 0.9899 GB, free: 12.6 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002358/0.7216, allocations: 131.1 kB / 0.99 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002981/0.7246, allocations: 1.433 MB / 0.9914 GB, free: 11.03 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.7247, allocations: 12 kB / 0.9914 GB, free: 11.02 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.7247, allocations: 0 / 0.9914 GB, free: 11.02 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.7247, allocations: 7.969 kB / 0.9914 GB, free: 11.01 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.004481/0.7292, allocations: 2.884 MB / 0.9942 GB, free: 8.039 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.7292, allocations: 7.938 kB / 0.9942 GB, free: 8.031 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009392/0.7301, allocations: 215.8 kB / 0.9944 GB, free: 7.82 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004189/0.7306, allocations: 84.7 kB / 0.9945 GB, free: 7.734 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.874e-05/0.7306, allocations: 35.91 kB / 0.9946 GB, free: 7.699 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001722/0.7324, allocations: 1.65 MB / 0.9962 GB, free: 5.906 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.7324, allocations: 0 / 0.9962 GB, free: 5.906 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002511/0.7349, allocations: 1.338 MB / 0.9975 GB, free: 4.547 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005386/0.7355, allocations: 363.9 kB / 0.9978 GB, free: 4.172 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001915/0.7357, allocations: 28 kB / 0.9979 GB, free: 4.145 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000892/0.7366, allocations: 86.36 kB / 0.9979 GB, free: 4.062 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.7367, allocations: 80.88 kB / 0.998 GB, free: 3.984 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.182e-05/0.7368, allocations: 51.97 kB / 0.9981 GB, free: 3.934 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0007744/0.7376, allocations: 0.6189 MB / 0.9987 GB, free: 3.305 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7376, allocations: 0 / 0.9987 GB, free: 3.305 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001177/0.7388, allocations: 490.7 kB / 0.9991 GB, free: 2.824 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.0041/0.7429, allocations: 2.492 MB / 1.002 GB, free: 500 kB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002172/0.7451, allocations: 1.117 MB / 1.003 GB, free: 15.36 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.7451, allocations: 0 / 1.003 GB, free: 15.36 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001148/0.7462, allocations: 0.6836 MB / 1.003 GB, free: 14.66 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002062/0.7483, allocations: 0.5091 MB / 1.004 GB, free: 14.18 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01489/0.7632, allocations: 9.043 MB / 1.013 GB, free: 4.934 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008093/0.764, allocations: 1.213 MB / 1.014 GB, free: 3.688 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001255/0.7653, allocations: 389.7 kB / 1.014 GB, free: 3.305 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007806/0.7661, allocations: 0.5695 MB / 1.015 GB, free: 2.734 MB / 0.7637 GB Notification: Performance of SimCode: time 7.32e-07/0.7661, allocations: 0 / 1.015 GB, free: 2.734 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06178/0.8279, allocations: 33.48 MB / 1.047 GB, free: 1.75 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.88/13.7, allocations: 15.48 kB / 1.047 GB, free: 1.738 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)