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.004956/0.004956, allocations: 98.55 kB / 15.73 MB, free: 5.598 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.001258/0.001258, allocations: 187.9 kB / 16.67 MB, free: 5.531 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002488/0.002488, allocations: 290 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.189/1.189, allocations: 178.5 MB / 0.5074 GB, free: 12.68 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002613/0.002614, allocations: 99.84 kB / 0.6943 GB, free: 15.21 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3944/0.397, allocations: 89.13 MB / 0.7813 GB, free: 1.141 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.2013/0.5984, allocations: 176.8 MB / 0.954 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0189/0.6173, allocations: 12.81 MB / 0.9665 GB, free: 10.47 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001364/0.6187, allocations: 31.81 kB / 0.9665 GB, free: 10.44 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001543/0.6203, allocations: 468.4 kB / 0.967 GB, free: 9.977 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.003437/0.6238, allocations: 1.037 MB / 0.968 GB, free: 8.938 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.004944/0.6287, allocations: 1.871 MB / 0.9698 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003645/0.6324, allocations: 2.532 MB / 0.9723 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00267/0.6351, allocations: 1.606 MB / 0.9738 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004286/0.6394, allocations: 1.411 MB / 0.9752 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001501/0.6409, allocations: 0.8869 MB / 0.9761 GB, free: 0.5938 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0004897/0.6414, allocations: 172 kB / 0.9763 GB, free: 436 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00315/0.6446, allocations: 1.423 MB / 0.9776 GB, free: 15 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0006665/0.6452, allocations: 0.4907 MB / 0.9781 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.001377/0.6466, allocations: 0.8708 MB / 0.979 GB, free: 13.63 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.004888/0.6515, allocations: 2.814 MB / 0.9817 GB, free: 10.81 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.6516, allocations: 0 / 0.9817 GB, free: 10.81 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.533e-06/0.6516, allocations: 0 / 0.9817 GB, free: 10.81 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 6.426e-05/0.6516, allocations: 0 / 0.9817 GB, free: 10.81 MB / 0.7481 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.004302/0.6559, allocations: 2.091 MB / 0.9838 GB, free: 8.652 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.656, allocations: 12.03 kB / 0.9838 GB, free: 8.641 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003148/0.6563, allocations: 206.7 kB / 0.984 GB, free: 8.43 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002702/0.659, allocations: 410.6 kB / 0.9844 GB, free: 8.027 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001887/0.6609, allocations: 1.039 MB / 0.9854 GB, free: 6.945 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.094e-05/0.661, allocations: 102.7 kB / 0.9855 GB, free: 6.844 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002108/0.6613, allocations: 132 kB / 0.9856 GB, free: 6.715 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002843/0.6641, allocations: 1.52 MB / 0.9871 GB, free: 5.117 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.779e-05/0.6641, allocations: 8 kB / 0.9871 GB, free: 5.109 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000143/0.6643, allocations: 56 kB / 0.9871 GB, free: 5.055 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.929e-05/0.6643, allocations: 36 kB / 0.9872 GB, free: 5.02 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002938/0.6673, allocations: 1.583 MB / 0.9887 GB, free: 3.43 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 preOpt removeSimpleEquations (simulation): time 0.3278/0.9951, allocations: 5.301 MB / 0.9939 GB, free: 199.9 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002651/0.9978, allocations: 1.526 MB / 0.9954 GB, free: 199.2 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008928/0.9987, allocations: 479.5 kB / 0.9959 GB, free: 199 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006846/0.9994, allocations: 423.1 kB / 0.9963 GB, free: 198.6 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001353/1.001, allocations: 0.689 MB / 0.9969 GB, free: 198.3 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=107): time 3.757e-06/1.001, allocations: 0 / 0.9969 GB, free: 198.3 MB / 0.7481 GB Notification: Performance of matching and sorting (n=107): time 0.00454/1.005, allocations: 1.676 MB / 0.9986 GB, free: 197.8 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.611e-05/1.005, allocations: 197.1 kB / 0.9988 GB, free: 197.5 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001363/1.007, allocations: 0.8947 MB / 0.9996 GB, free: 197.2 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.000134/1.007, allocations: 52.95 kB / 0.9997 GB, free: 197.1 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004432/1.007, allocations: 0.6056 MB / 1 GB, free: 196.7 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002611/1.008, allocations: 369.3 kB / 1.001 GB, free: 196.5 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003237/1.008, allocations: 196.4 kB / 1.001 GB, free: 196.4 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 7.815e-05/1.008, allocations: 344.1 kB / 1.001 GB, free: 196.1 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007918/1.009, allocations: 376.1 kB / 1.001 GB, free: 196 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009396/1.01, allocations: 0.5729 MB / 1.002 GB, free: 195.6 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001787/1.012, allocations: 0.9275 MB / 1.003 GB, free: 195.2 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/1.012, allocations: 1.875 kB / 1.003 GB, free: 195.2 MB / 0.7481 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003162/1.015, allocations: 1.19 MB / 1.004 GB, free: 194.7 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/1.015, allocations: 10.97 kB / 1.004 GB, free: 194.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/1.015, allocations: 3.094 kB / 1.004 GB, free: 194.7 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006231/1.016, allocations: 86.11 kB / 1.004 GB, free: 194.7 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/1.017, allocations: 240.3 kB / 1.004 GB, free: 194.7 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001992/1.019, allocations: 1.661 MB / 1.006 GB, free: 193.1 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/1.02, allocations: 134.9 kB / 1.006 GB, free: 193.1 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.502e-05/1.02, allocations: 47.06 kB / 1.006 GB, free: 193.1 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.0006042/1.021, allocations: 349.3 kB / 1.007 GB, free: 192.8 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002291/1.021, allocations: 127.9 kB / 1.007 GB, free: 192.8 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002898/1.024, allocations: 1.43 MB / 1.008 GB, free: 192.2 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/1.024, allocations: 13.05 kB / 1.008 GB, free: 192.2 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/1.024, allocations: 3.438 kB / 1.008 GB, free: 192.2 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/1.024, allocations: 11 kB / 1.008 GB, free: 192.2 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.004173/1.028, allocations: 2.869 MB / 1.011 GB, free: 190.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/1.028, allocations: 5.188 kB / 1.011 GB, free: 190.5 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009261/1.029, allocations: 227 kB / 1.011 GB, free: 190.4 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004213/1.029, allocations: 67.33 kB / 1.011 GB, free: 190.4 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.13e-05/1.029, allocations: 37.5 kB / 1.011 GB, free: 190.4 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001474/1.031, allocations: 1.674 MB / 1.013 GB, free: 188.7 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/1.031, allocations: 0 / 1.013 GB, free: 188.7 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002491/1.033, allocations: 1.328 MB / 1.014 GB, free: 188 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004669/1.034, allocations: 361.8 kB / 1.015 GB, free: 187.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001623/1.034, allocations: 26.03 kB / 1.015 GB, free: 187.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008883/1.035, allocations: 83.86 kB / 1.015 GB, free: 187.7 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/1.035, allocations: 85.31 kB / 1.015 GB, free: 187.6 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/1.035, allocations: 48.09 kB / 1.015 GB, free: 187.6 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0007495/1.036, allocations: 0.6203 MB / 1.015 GB, free: 187.2 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2e-07/1.036, allocations: 0 / 1.015 GB, free: 187.2 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001176/1.037, allocations: 0.4942 MB / 1.016 GB, free: 187.2 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.004485/1.042, allocations: 2.488 MB / 1.018 GB, free: 185.7 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002126/1.044, allocations: 1.121 MB / 1.019 GB, free: 185.2 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/1.044, allocations: 1.375 kB / 1.019 GB, free: 185.2 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001093/1.045, allocations: 0.6806 MB / 1.02 GB, free: 184.8 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/1.047, allocations: 0.5417 MB / 1.021 GB, free: 184.5 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01228/1.059, allocations: 8.928 MB / 1.029 GB, free: 179.2 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005216/1.06, allocations: 1.207 MB / 1.03 GB, free: 178.2 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.001183/1.061, allocations: 382.1 kB / 1.031 GB, free: 178.1 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006368/1.062, allocations: 0.5707 MB / 1.031 GB, free: 177.6 MB / 0.7481 GB Notification: Performance of SimCode: time 6.41e-07/1.062, allocations: 1.094 kB / 1.031 GB, free: 177.6 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07889/1.141, allocations: 34.03 MB / 1.065 GB, free: 144.4 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.36/14.51, allocations: 2.922 kB / 1.065 GB, free: 144.4 MB / 0.7481 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)