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.005575/0.005575, allocations: 100.8 kB / 15.73 MB, free: 5.988 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.001295/0.001295, allocations: 186.1 kB / 16.67 MB, free: 5.914 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002508/0.002508, allocations: 279 kB / 290.8 MB, free: 1.762 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9875/0.9875, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002605/0.002605, allocations: 99.84 kB / 0.681 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1592, allocations: 86.97 MB / 0.7659 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.4688/0.6281, allocations: 176 MB / 0.9378 GB, free: 3.031 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.01577/0.6439, allocations: 12.74 MB / 0.9502 GB, free: 6.25 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006581/0.6446, allocations: 35.75 kB / 0.9503 GB, free: 6.215 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.001023/0.6456, allocations: 448.6 kB / 0.9507 GB, free: 5.773 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.002043/0.6477, allocations: 0.9642 MB / 0.9516 GB, free: 4.809 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.003612/0.6513, allocations: 1.867 MB / 0.9535 GB, free: 2.953 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.002293/0.6536, allocations: 2.409 MB / 0.9558 GB, free: 0.5352 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001888/0.6555, allocations: 1.631 MB / 0.9574 GB, free: 14.86 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003036/0.6585, allocations: 1.398 MB / 0.9588 GB, free: 13.5 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009431/0.6595, allocations: 0.8635 MB / 0.9596 GB, free: 12.63 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0002132/0.6597, allocations: 168 kB / 0.9598 GB, free: 12.47 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002118/0.6618, allocations: 1.435 MB / 0.9612 GB, free: 11.03 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.00042/0.6623, allocations: 486.5 kB / 0.9617 GB, free: 10.55 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0007414/0.663, allocations: 0.8512 MB / 0.9625 GB, free: 9.699 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00299/0.666, allocations: 2.78 MB / 0.9652 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.666, allocations: 3.938 kB / 0.9652 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.81e-07/0.666, allocations: 0 / 0.9652 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.375e-05/0.666, allocations: 0 / 0.9652 GB, free: 6.91 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.003169/0.6692, allocations: 2.068 MB / 0.9672 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.6693, allocations: 12.03 kB / 0.9672 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000239/0.6695, allocations: 202.7 kB / 0.9674 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002439/0.6719, allocations: 418.5 kB / 0.9678 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001493/0.6734, allocations: 1.04 MB / 0.9688 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.841e-05/0.6735, allocations: 102.7 kB / 0.9689 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001761/0.6737, allocations: 132 kB / 0.9691 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002464/0.6762, allocations: 1.52 MB / 0.9705 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.6762, allocations: 4 kB / 0.9706 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001369/0.6764, allocations: 60 kB / 0.9706 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.906e-05/0.6764, allocations: 36 kB / 0.9706 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002727/0.6791, allocations: 1.583 MB / 0.9722 GB, free: 15.55 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.006911/0.6861, allocations: 5.035 MB / 0.9771 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002641/0.6887, allocations: 1.526 MB / 0.9786 GB, free: 8.652 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008515/0.6896, allocations: 482.9 kB / 0.9791 GB, free: 8.184 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007679/0.6904, allocations: 429.3 kB / 0.9795 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001297/0.6917, allocations: 0.6957 MB / 0.9801 GB, free: 6.977 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=107): time 2.474e-06/0.6917, allocations: 0 / 0.9801 GB, free: 6.977 MB / 0.7325 GB Notification: Performance of matching and sorting (n=107): time 0.004273/0.696, allocations: 1.669 MB / 0.9818 GB, free: 5.277 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001249/0.6961, allocations: 200.8 kB / 0.982 GB, free: 5.039 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001156/0.6973, allocations: 0.8883 MB / 0.9828 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.6974, allocations: 53.69 kB / 0.9829 GB, free: 4.07 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004884/0.6979, allocations: 0.5986 MB / 0.9835 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003174/0.6982, allocations: 368.9 kB / 0.9838 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003092/0.6985, allocations: 194.6 kB / 0.984 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001688/0.6987, allocations: 345.9 kB / 0.9843 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007898/0.6995, allocations: 381.8 kB / 0.9847 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009641/0.7004, allocations: 0.5602 MB / 0.9852 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001728/0.7022, allocations: 0.9371 MB / 0.9862 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.7022, allocations: 4 kB / 0.9862 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002648/0.7049, allocations: 1.185 MB / 0.9873 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.7049, allocations: 12.03 kB / 0.9873 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.7049, allocations: 0 / 0.9873 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000609/0.7055, allocations: 88.77 kB / 0.9874 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.7066, allocations: 243.7 kB / 0.9877 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002164/0.7088, allocations: 1.662 MB / 0.9893 GB, free: 13.24 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008944/0.7097, allocations: 133.4 kB / 0.9894 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.421e-05/0.7098, allocations: 43.97 kB / 0.9894 GB, free: 13.07 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.0005063/0.7103, allocations: 346.2 kB / 0.9898 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002239/0.7105, allocations: 127.2 kB / 0.9899 GB, free: 12.6 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003189/0.7137, allocations: 1.433 MB / 0.9913 GB, free: 11.15 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.7137, allocations: 12 kB / 0.9913 GB, free: 11.14 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-05/0.7138, allocations: 7.938 kB / 0.9913 GB, free: 11.13 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/0.7138, allocations: 3.984 kB / 0.9913 GB, free: 11.13 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.004828/0.7186, allocations: 2.884 MB / 0.9941 GB, free: 8.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.7186, allocations: 0 / 0.9941 GB, free: 8.16 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000977/0.7196, allocations: 219.7 kB / 0.9943 GB, free: 7.945 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00043/0.7201, allocations: 80.72 kB / 0.9944 GB, free: 7.863 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.929e-05/0.7201, allocations: 27.97 kB / 0.9944 GB, free: 7.836 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002037/0.7222, allocations: 1.67 MB / 0.9961 GB, free: 6.023 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.7222, allocations: 0 / 0.9961 GB, free: 6.023 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00276/0.725, allocations: 1.331 MB / 0.9974 GB, free: 4.672 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000557/0.7255, allocations: 359.8 kB / 0.9977 GB, free: 4.301 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001462/0.7257, allocations: 35.92 kB / 0.9978 GB, free: 4.266 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009188/0.7266, allocations: 73.14 kB / 0.9978 GB, free: 4.195 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.7268, allocations: 85.08 kB / 0.9979 GB, free: 4.113 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/0.7269, allocations: 63.95 kB / 0.998 GB, free: 4.051 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0008069/0.7277, allocations: 0.6189 MB / 0.9986 GB, free: 3.422 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7277, allocations: 4 kB / 0.9986 GB, free: 3.418 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001178/0.7289, allocations: 486.7 kB / 0.999 GB, free: 2.941 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.004842/0.7338, allocations: 2.488 MB / 1.001 GB, free: 0.6172 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002132/0.7359, allocations: 1.113 MB / 1.003 GB, free: 15.49 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.7359, allocations: 4 kB / 1.003 GB, free: 15.49 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001201/0.7371, allocations: 0.6797 MB / 1.003 GB, free: 14.8 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001945/0.7391, allocations: 0.5168 MB / 1.004 GB, free: 14.31 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01535/0.7544, allocations: 9.043 MB / 1.013 GB, free: 5.059 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001034/0.7555, allocations: 1.216 MB / 1.014 GB, free: 3.812 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001141/0.7566, allocations: 385.8 kB / 1.014 GB, free: 3.434 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008016/0.7575, allocations: 0.5695 MB / 1.015 GB, free: 2.863 MB / 0.7637 GB Notification: Performance of SimCode: time 5.2e-06/0.7575, allocations: 0 / 1.015 GB, free: 2.863 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07419/0.8317, allocations: 33.49 MB / 1.047 GB, free: 1.871 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/14.32, allocations: 3.938 kB / 1.047 GB, free: 1.867 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)