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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.0013/0.0013, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.227/1.227, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.21/2.21, allocations: 437 MB / 0.7104 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 63.91 kB / 0.8693 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4642/0.4654, allocations: 151.6 MB / 1.017 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1434/0.6088, allocations: 176.8 MB / 1.19 GB, free: 1.031 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01281/0.6216, allocations: 12.81 MB / 1.203 GB, free: 4.176 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005861/0.6223, allocations: 31.81 kB / 1.203 GB, free: 4.145 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0009133/0.6232, allocations: 476.4 kB / 1.203 GB, free: 3.676 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001834/0.625, allocations: 1.037 MB / 1.204 GB, free: 2.637 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.00308/0.6281, allocations: 1.857 MB / 1.206 GB, free: 0.7852 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001709/0.6299, allocations: 2.52 MB / 1.208 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001457/0.6313, allocations: 1.602 MB / 1.21 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002459/0.6338, allocations: 1.423 MB / 1.211 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007245/0.6345, allocations: 0.8831 MB / 1.212 GB, free: 10.31 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001951/0.6347, allocations: 172 kB / 1.212 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00178/0.6365, allocations: 1.392 MB / 1.214 GB, free: 8.75 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0003243/0.6369, allocations: 498.5 kB / 1.214 GB, free: 8.262 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0006129/0.6375, allocations: 0.8825 MB / 1.215 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.002277/0.6398, allocations: 2.75 MB / 1.218 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.6398, allocations: 0 / 1.218 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.362e-06/0.6398, allocations: 0 / 1.218 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.374e-05/0.6398, allocations: 0 / 1.218 GB, free: 4.617 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.002675/0.6425, allocations: 2.024 MB / 1.22 GB, free: 2.531 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.6425, allocations: 12.03 kB / 1.22 GB, free: 2.52 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001967/0.6427, allocations: 206.7 kB / 1.22 GB, free: 2.309 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002309/0.645, allocations: 405.5 kB / 1.22 GB, free: 1.91 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.6462, allocations: 0.9917 MB / 1.221 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.696e-05/0.6463, allocations: 102.7 kB / 1.221 GB, free: 0.7734 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/0.6464, allocations: 132 kB / 1.221 GB, free: 0.6445 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002166/0.6486, allocations: 1.528 MB / 1.223 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.6486, allocations: 3.938 kB / 1.223 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001182/0.6488, allocations: 60 kB / 1.223 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.21e-05/0.6488, allocations: 32 kB / 1.223 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002378/0.6512, allocations: 1.583 MB / 1.225 GB, free: 13.36 MB / 0.9825 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.005719/0.6569, allocations: 5.345 MB / 1.23 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002297/0.6592, allocations: 1.525 MB / 1.231 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007621/0.66, allocations: 479.6 kB / 1.232 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006236/0.6606, allocations: 425.3 kB / 1.232 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001057/0.6617, allocations: 0.684 MB / 1.233 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=107): time 2.184e-06/0.6617, allocations: 4 kB / 1.233 GB, free: 4.426 MB / 0.9825 GB Notification: Performance of matching and sorting (n=107): time 0.003809/0.6655, allocations: 1.668 MB / 1.234 GB, free: 2.727 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.445e-05/0.6656, allocations: 192.9 kB / 1.235 GB, free: 2.496 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009276/0.6665, allocations: 0.8921 MB / 1.236 GB, free: 1.582 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 7.401e-05/0.6666, allocations: 53.7 kB / 1.236 GB, free: 1.523 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003526/0.667, allocations: 0.5935 MB / 1.236 GB, free: 0.9219 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002319/0.6672, allocations: 358.9 kB / 1.237 GB, free: 0.5664 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002558/0.6675, allocations: 198.5 kB / 1.237 GB, free: 376 kB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.379e-05/0.6676, allocations: 341.9 kB / 1.237 GB, free: 28 kB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007166/0.6683, allocations: 377.9 kB / 1.237 GB, free: 15.65 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008415/0.6691, allocations: 0.5632 MB / 1.238 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001553/0.6707, allocations: 0.9409 MB / 1.239 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.6707, allocations: 0 / 1.239 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002347/0.6731, allocations: 1.18 MB / 1.24 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.6731, allocations: 9.094 kB / 1.24 GB, free: 12.85 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.6731, allocations: 4 kB / 1.24 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005302/0.6736, allocations: 89.17 kB / 1.24 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009751/0.6746, allocations: 247.7 kB / 1.24 GB, free: 12.51 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001747/0.6764, allocations: 1.654 MB / 1.242 GB, free: 10.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007821/0.6772, allocations: 132.7 kB / 1.242 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.355e-05/0.6773, allocations: 47.97 kB / 1.242 GB, free: 10.54 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.0004198/0.6777, allocations: 337.7 kB / 1.242 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001985/0.6779, allocations: 122.5 kB / 1.243 GB, free: 10.08 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002869/0.6808, allocations: 1.433 MB / 1.244 GB, free: 8.625 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.6808, allocations: 15.98 kB / 1.244 GB, free: 8.609 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.6808, allocations: 3.984 kB / 1.244 GB, free: 8.605 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.6808, allocations: 3.984 kB / 1.244 GB, free: 8.602 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.00401/0.6848, allocations: 2.885 MB / 1.247 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.6848, allocations: 0 / 1.247 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009173/0.6858, allocations: 223.6 kB / 1.247 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000402/0.6862, allocations: 80.72 kB / 1.247 GB, free: 5.336 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.143e-05/0.6863, allocations: 31.97 kB / 1.247 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001689/0.6879, allocations: 1.667 MB / 1.249 GB, free: 3.492 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.688, allocations: 0 / 1.249 GB, free: 3.492 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002422/0.6904, allocations: 1.324 MB / 1.25 GB, free: 2.148 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004034/0.6908, allocations: 359.1 kB / 1.25 GB, free: 1.777 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000154/0.691, allocations: 24 kB / 1.25 GB, free: 1.754 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008531/0.6918, allocations: 88.84 kB / 1.25 GB, free: 1.668 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.692, allocations: 81.03 kB / 1.251 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.112e-05/0.6921, allocations: 55.95 kB / 1.251 GB, free: 1.531 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0006805/0.6928, allocations: 0.615 MB / 1.251 GB, free: 0.9062 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6928, allocations: 0 / 1.251 GB, free: 0.9062 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0009218/0.6937, allocations: 498.8 kB / 1.252 GB, free: 428 kB / 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.3684/1.062, allocations: 2.489 MB / 1.254 GB, free: 231.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003351/1.066, allocations: 1.432 MB / 1.256 GB, free: 231.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/1.066, allocations: 1.438 kB / 1.256 GB, free: 231.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001197/1.067, allocations: 0.6794 MB / 1.256 GB, free: 230.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002259/1.069, allocations: 0.5217 MB / 1.257 GB, free: 230.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01444/1.083, allocations: 9.423 MB / 1.266 GB, free: 225.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006228/1.084, allocations: 1.212 MB / 1.267 GB, free: 225 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001324/1.085, allocations: 388.7 kB / 1.267 GB, free: 224.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006091/1.086, allocations: 0.5709 MB / 1.268 GB, free: 224.5 MB / 0.9981 GB Notification: Performance of SimCode: time 6.01e-07/1.086, allocations: 1.594 kB / 1.268 GB, free: 224.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7611/1.847, allocations: 33.69 MB / 1.301 GB, free: 202.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/13.7, allocations: 10.34 kB / 1.301 GB, free: 202.2 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)