Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="Buildings_latest_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.00509/0.00509, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001397/0.001397, allocations: 202.7 kB / 16.68 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.301/1.301, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.65/2.65, allocations: 482.6 MB / 0.755 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001697/0.001697, allocations: 68.11 kB / 1.083 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2649, allocations: 162.3 MB / 1.242 GB, free: 9.824 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.6571/0.9221, allocations: 176.8 MB / 1.415 GB, free: 336 kB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.01502/0.9371, allocations: 12.82 MB / 1.427 GB, free: 5.957 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007895/0.9379, allocations: 31.75 kB / 1.427 GB, free: 5.945 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.939, allocations: 467.8 kB / 1.428 GB, free: 5.547 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.002146/0.9412, allocations: 1.027 MB / 1.429 GB, free: 4.75 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.003657/0.9448, allocations: 1.868 MB / 1.43 GB, free: 3.352 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.002207/0.947, allocations: 2.525 MB / 1.433 GB, free: 1.832 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001607/0.9487, allocations: 1.605 MB / 1.434 GB, free: 0.7734 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003198/0.9519, allocations: 1.538 MB / 1.436 GB, free: 15.88 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008953/0.9528, allocations: 0.8759 MB / 1.437 GB, free: 15.29 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.000202/0.953, allocations: 172.5 kB / 1.437 GB, free: 15.29 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002235/0.9552, allocations: 1.432 MB / 1.438 GB, free: 13.94 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.0004116/0.9557, allocations: 486.6 kB / 1.439 GB, free: 13.46 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.000766/0.9564, allocations: 0.8747 MB / 1.44 GB, free: 12.58 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.00298/0.9594, allocations: 2.815 MB / 1.442 GB, free: 9.758 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.9594, allocations: 0 / 1.442 GB, free: 9.758 MB / 1.139 GB Notification: Performance of FrontEnd: time 1.082e-06/0.9594, allocations: 4 kB / 1.442 GB, free: 9.754 MB / 1.139 GB Notification: Performance of Transformations before backend: time 1.588e-05/0.9595, allocations: 0 / 1.442 GB, free: 9.754 MB / 1.139 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.002974/0.9624, allocations: 2.091 MB / 1.444 GB, free: 7.598 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.9625, allocations: 8.031 kB / 1.444 GB, free: 7.59 MB / 1.139 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002207/0.9627, allocations: 202.7 kB / 1.445 GB, free: 7.383 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002308/0.965, allocations: 422.5 kB / 1.445 GB, free: 6.969 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001381/0.9664, allocations: 1.032 MB / 1.446 GB, free: 5.891 MB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.029e-05/0.9665, allocations: 102.7 kB / 1.446 GB, free: 5.789 MB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001596/0.9667, allocations: 132 kB / 1.446 GB, free: 5.66 MB / 1.139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002325/0.969, allocations: 1.521 MB / 1.448 GB, free: 4.062 MB / 1.139 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.631e-05/0.969, allocations: 3.938 kB / 1.448 GB, free: 4.059 MB / 1.139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001231/0.9692, allocations: 60 kB / 1.448 GB, free: 4 MB / 1.139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.509e-05/0.9692, allocations: 32 kB / 1.448 GB, free: 3.969 MB / 1.139 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002572/0.9718, allocations: 1.587 MB / 1.449 GB, free: 2.375 MB / 1.139 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.006343/0.9781, allocations: 5.416 MB / 1.455 GB, free: 12.61 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002457/0.9806, allocations: 1.523 MB / 1.456 GB, free: 11.01 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008048/0.9814, allocations: 488.1 kB / 1.457 GB, free: 10.54 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006647/0.9821, allocations: 421.3 kB / 1.457 GB, free: 10.05 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001143/0.9832, allocations: 0.688 MB / 1.458 GB, free: 9.344 MB / 1.154 GB Notification: Performance of pre-optimization done (n=107): time 1.994e-06/0.9832, allocations: 0 / 1.458 GB, free: 9.344 MB / 1.154 GB Notification: Performance of matching and sorting (n=107): time 0.003964/0.9872, allocations: 1.673 MB / 1.459 GB, free: 7.648 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.9873, allocations: 196.9 kB / 1.46 GB, free: 7.41 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.9884, allocations: 0.8922 MB / 1.46 GB, free: 6.496 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 7.754e-05/0.9885, allocations: 49.7 kB / 1.46 GB, free: 6.441 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004447/0.9889, allocations: 0.6025 MB / 1.461 GB, free: 5.832 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002771/0.9892, allocations: 376.8 kB / 1.461 GB, free: 5.461 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002923/0.9895, allocations: 194.6 kB / 1.462 GB, free: 5.266 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.9896, allocations: 345.9 kB / 1.462 GB, free: 4.922 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007362/0.9904, allocations: 377.8 kB / 1.462 GB, free: 4.555 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009148/0.9913, allocations: 0.5671 MB / 1.463 GB, free: 3.922 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001628/0.9929, allocations: 0.9293 MB / 1.464 GB, free: 2.953 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.993, allocations: 4 kB / 1.464 GB, free: 2.949 MB / 1.154 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002444/0.9954, allocations: 1.188 MB / 1.465 GB, free: 1.746 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.9954, allocations: 8 kB / 1.465 GB, free: 1.738 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.9954, allocations: 4 kB / 1.465 GB, free: 1.734 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005394/0.996, allocations: 85.17 kB / 1.465 GB, free: 1.648 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009631/0.997, allocations: 247.6 kB / 1.465 GB, free: 1.406 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001964/0.9989, allocations: 1.646 MB / 1.467 GB, free: 15.61 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007855/0.9997, allocations: 148.7 kB / 1.467 GB, free: 15.47 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.087e-05/0.9998, allocations: 39.97 kB / 1.467 GB, free: 15.43 MB / 1.17 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.0004449/1, allocations: 345.5 kB / 1.467 GB, free: 15.08 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001975/1, allocations: 127.2 kB / 1.467 GB, free: 14.96 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002963/1.003, allocations: 1.433 MB / 1.469 GB, free: 13.51 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/1.003, allocations: 8 kB / 1.469 GB, free: 13.5 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/1.003, allocations: 4 kB / 1.469 GB, free: 13.5 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/1.003, allocations: 7.969 kB / 1.469 GB, free: 13.49 MB / 1.17 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.004302/1.008, allocations: 2.876 MB / 1.472 GB, free: 10.54 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/1.008, allocations: 0 / 1.472 GB, free: 10.54 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009009/1.009, allocations: 231.7 kB / 1.472 GB, free: 10.31 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003984/1.009, allocations: 68.78 kB / 1.472 GB, free: 10.24 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.283e-05/1.009, allocations: 39.91 kB / 1.472 GB, free: 10.2 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/1.011, allocations: 1.67 MB / 1.474 GB, free: 8.387 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/1.011, allocations: 0 / 1.474 GB, free: 8.387 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002479/1.014, allocations: 1.331 MB / 1.475 GB, free: 7.035 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004348/1.014, allocations: 367.7 kB / 1.475 GB, free: 6.656 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/1.014, allocations: 24 kB / 1.475 GB, free: 6.633 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008347/1.015, allocations: 86.48 kB / 1.475 GB, free: 6.551 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/1.015, allocations: 84.88 kB / 1.475 GB, free: 6.469 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/1.015, allocations: 51.95 kB / 1.476 GB, free: 6.418 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.0007435/1.016, allocations: 0.6189 MB / 1.476 GB, free: 5.789 MB / 1.17 GB Notification: Performance of sort global known variables: time 1.5e-07/1.016, allocations: 0 / 1.476 GB, free: 5.789 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.0009874/1.017, allocations: 0.4909 MB / 1.477 GB, free: 5.297 MB / 1.17 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.004595/1.022, allocations: 2.494 MB / 1.479 GB, free: 2.965 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.00205/1.024, allocations: 1.129 MB / 1.48 GB, free: 1.824 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/1.024, allocations: 0 / 1.48 GB, free: 1.824 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.00115/1.025, allocations: 0.672 MB / 1.481 GB, free: 1.141 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001912/1.027, allocations: 0.5267 MB / 1.481 GB, free: 0.6367 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01301/1.04, allocations: 8.933 MB / 1.49 GB, free: 7.496 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007864/1.041, allocations: 1.213 MB / 1.491 GB, free: 6.254 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.001063/1.042, allocations: 389.8 kB / 1.492 GB, free: 5.871 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000755/1.042, allocations: 0.5695 MB / 1.492 GB, free: 5.305 MB / 1.186 GB Notification: Performance of SimCode: time 2.8e-07/1.042, allocations: 0 / 1.492 GB, free: 5.305 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.494/3.536, allocations: 34.01 MB / 1.525 GB, free: 3.742 MB / 1.217 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.79/20.33, allocations: 3.781 kB / 1.525 GB, free: 3.738 MB / 1.217 GB (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)