Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="Buildings_10_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="Buildings_10_Buildings_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.0007904/0.0007937, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.00553/0.00553, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.296/1.296, allocations: 223.3 MB / 240.3 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.356/2.356, allocations: 437.8 MB / 0.7121 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003037/0.0003038, allocations: 12 kB / 0.8729 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5135/0.5138, allocations: 153.8 MB / 1.023 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1467/0.6605, allocations: 172.2 MB / 1.191 GB, free: 3.078 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0131/0.6737, allocations: 12.67 MB / 1.204 GB, free: 6.379 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006152/0.6743, allocations: 27.81 kB / 1.204 GB, free: 6.352 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0008745/0.6752, allocations: 389.5 kB / 1.204 GB, free: 5.969 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.00183/0.677, allocations: 0.9108 MB / 1.205 GB, free: 5.055 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.003215/0.6802, allocations: 1.669 MB / 1.207 GB, free: 3.395 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002264/0.6825, allocations: 2.867 MB / 1.209 GB, free: 0.5117 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001466/0.684, allocations: 1.37 MB / 1.211 GB, free: 15.09 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003291/0.6873, allocations: 1.155 MB / 1.212 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007232/0.688, allocations: 0.7308 MB / 1.213 GB, free: 13.22 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001036/0.6881, allocations: 44 kB / 1.213 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00199/0.6901, allocations: 1.419 MB / 1.214 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0002744/0.6904, allocations: 350.5 kB / 1.214 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0005521/0.691, allocations: 0.7319 MB / 1.215 GB, free: 10.67 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.002221/0.6932, allocations: 2.659 MB / 1.218 GB, free: 8.004 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.6932, allocations: 4 kB / 1.218 GB, free: 8 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.172e-06/0.6932, allocations: 0 / 1.218 GB, free: 8 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.338e-05/0.6933, allocations: 0 / 1.218 GB, free: 8 MB / 0.9669 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.00254/0.6958, allocations: 1.705 MB / 1.219 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.6958, allocations: 12.02 kB / 1.219 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002144/0.6961, allocations: 202.7 kB / 1.219 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002396/0.6985, allocations: 417.5 kB / 1.22 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/0.7, allocations: 1.003 MB / 1.221 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.584e-05/0.7001, allocations: 102.7 kB / 1.221 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001712/0.7003, allocations: 128 kB / 1.221 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002443/0.7027, allocations: 1.528 MB / 1.223 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/0.7028, allocations: 0 / 1.223 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001226/0.7029, allocations: 60 kB / 1.223 GB, free: 2.664 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.294e-05/0.7029, allocations: 32 kB / 1.223 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002406/0.7053, allocations: 1.602 MB / 1.224 GB, free: 1.023 MB / 0.9669 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.005969/0.7113, allocations: 5.358 MB / 1.229 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002317/0.7137, allocations: 1.53 MB / 1.231 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007678/0.7144, allocations: 483.6 kB / 1.231 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006539/0.7151, allocations: 445.2 kB / 1.232 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001089/0.7162, allocations: 0.6958 MB / 1.233 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=107): time 2.525e-06/0.7162, allocations: 0 / 1.233 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of matching and sorting (n=107): time 0.003887/0.7201, allocations: 1.684 MB / 1.234 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.949e-05/0.7202, allocations: 196.9 kB / 1.234 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009975/0.7212, allocations: 0.8922 MB / 1.235 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 8.417e-05/0.7213, allocations: 45.7 kB / 1.235 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003748/0.7217, allocations: 0.5935 MB / 1.236 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002442/0.7219, allocations: 354.9 kB / 1.236 GB, free: 4.18 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.722, allocations: 81.67 kB / 1.236 GB, free: 4.094 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.7222, allocations: 345.9 kB / 1.237 GB, free: 3.75 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007097/0.7229, allocations: 377.8 kB / 1.237 GB, free: 3.379 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008262/0.7237, allocations: 0.5671 MB / 1.238 GB, free: 2.75 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00154/0.7253, allocations: 0.9449 MB / 1.238 GB, free: 1.766 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.7253, allocations: 0 / 1.238 GB, free: 1.766 MB / 0.9825 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002297/0.7276, allocations: 1.2 MB / 1.24 GB, free: 0.5508 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.7276, allocations: 4 kB / 1.24 GB, free: 0.5469 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.7276, allocations: 7.984 kB / 1.24 GB, free: 0.5391 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005461/0.7282, allocations: 85.12 kB / 1.24 GB, free: 464 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/0.7292, allocations: 247.7 kB / 1.24 GB, free: 216 kB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001757/0.731, allocations: 1.55 MB / 1.241 GB, free: 14.53 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009208/0.7319, allocations: 159.6 kB / 1.242 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.97e-05/0.732, allocations: 47.91 kB / 1.242 GB, free: 14.32 MB / 0.9981 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.0004543/0.7324, allocations: 341.8 kB / 1.242 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001634/0.7326, allocations: 126.5 kB / 1.242 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002883/0.7355, allocations: 1.445 MB / 1.244 GB, free: 12.4 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/0.7355, allocations: 16 kB / 1.244 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.7355, allocations: 0 / 1.244 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.7355, allocations: 7.969 kB / 1.244 GB, free: 12.38 MB / 0.9981 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.004094/0.7396, allocations: 2.897 MB / 1.246 GB, free: 9.395 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.7397, allocations: 0 / 1.246 GB, free: 9.395 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009048/0.7406, allocations: 215.8 kB / 1.247 GB, free: 9.184 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004804/0.7411, allocations: 88.77 kB / 1.247 GB, free: 9.094 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.85e-05/0.7411, allocations: 31.97 kB / 1.247 GB, free: 9.062 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001564/0.7427, allocations: 1.567 MB / 1.248 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.7427, allocations: 0 / 1.248 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002352/0.7451, allocations: 1.328 MB / 1.25 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004499/0.7455, allocations: 375.1 kB / 1.25 GB, free: 5.621 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.7457, allocations: 20 kB / 1.25 GB, free: 5.602 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009826/0.7467, allocations: 122.6 kB / 1.25 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.7468, allocations: 88.88 kB / 1.25 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.116e-05/0.7469, allocations: 48.03 kB / 1.25 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007253/0.7477, allocations: 0.6189 MB / 1.251 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7477, allocations: 0 / 1.251 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001056/0.7487, allocations: 498.8 kB / 1.251 GB, free: 4.23 MB / 0.9981 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.004055/0.7528, allocations: 2.513 MB / 1.254 GB, free: 1.883 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002028/0.7548, allocations: 1.113 MB / 1.255 GB, free: 0.7578 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.7549, allocations: 4 kB / 1.255 GB, free: 0.7539 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001086/0.756, allocations: 0.6797 MB / 1.255 GB, free: 68 kB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.3999/1.156, allocations: 498.5 kB / 1.256 GB, free: 229.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01673/1.173, allocations: 10.03 MB / 1.266 GB, free: 224.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000741/1.173, allocations: 1.207 MB / 1.267 GB, free: 224 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001562/1.175, allocations: 395.4 kB / 1.267 GB, free: 224 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007284/1.176, allocations: 0.5676 MB / 1.268 GB, free: 223.6 MB / 0.9981 GB Notification: Performance of SimCode: time 7.02e-07/1.176, allocations: 0 / 1.268 GB, free: 223.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.056/2.232, allocations: 32.17 MB / 1.299 GB, free: 205.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002425/2.232, allocations: 290.1 kB / 1.299 GB, free: 204.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.819/5.051, allocations: 4 kB / 1.299 GB, free: 204.8 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > Buildings_10_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)