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.005039/0.005039, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001163/0.001163, allocations: 196.1 kB / 16.68 MB, free: 5.93 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.273/1.273, 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.002167/0.002168, allocations: 290.1 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 0.8953/0.8953, allocations: 169.2 MB / 0.4983 GB, free: 4.41 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 91.86 kB / 0.681 GB, free: 7.469 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4014/0.4032, allocations: 86.98 MB / 0.7659 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1744/0.5776, allocations: 176 MB / 0.9378 GB, free: 3.145 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.01651/0.5941, allocations: 12.72 MB / 0.9502 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.5954, allocations: 35.81 kB / 0.9503 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001415/0.5968, allocations: 452.6 kB / 0.9507 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.002957/0.5998, allocations: 0.9905 MB / 0.9517 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.004447/0.6043, allocations: 1.886 MB / 0.9535 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.002616/0.6069, allocations: 2.427 MB / 0.9559 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.4231/1.03, allocations: 1.623 MB / 0.9575 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004267/1.034, allocations: 1.434 MB / 0.9589 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00129/1.036, allocations: 0.8654 MB / 0.9597 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0002614/1.036, allocations: 171.8 kB / 0.9599 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00274/1.039, allocations: 1.426 MB / 0.9613 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0005102/1.039, allocations: 495.2 kB / 0.9617 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.001011/1.04, allocations: 0.8499 MB / 0.9626 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.004048/1.044, allocations: 2.768 MB / 0.9653 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/1.044, allocations: 0 / 0.9653 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.713e-06/1.044, allocations: 1.312 kB / 0.9653 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.826e-05/1.044, allocations: 1.031 kB / 0.9653 GB, free: 3.156 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.003693/1.048, allocations: 2.014 MB / 0.9672 GB, free: 18.17 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/1.048, allocations: 10.41 kB / 0.9673 GB, free: 18.17 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002199/1.048, allocations: 204.5 kB / 0.9674 GB, free: 18.13 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002454/1.051, allocations: 399.2 kB / 0.9678 GB, free: 18.04 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/1.052, allocations: 1.034 MB / 0.9688 GB, free: 17.68 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.73e-05/1.052, allocations: 107 kB / 0.9689 GB, free: 17.68 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001791/1.052, allocations: 132.3 kB / 0.9691 GB, free: 17.68 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002091/1.054, allocations: 1.52 MB / 0.9705 GB, free: 17.46 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.841e-05/1.055, allocations: 3.469 kB / 0.9706 GB, free: 17.46 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001135/1.055, allocations: 56.81 kB / 0.9706 GB, free: 17.46 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.137e-05/1.055, allocations: 36.91 kB / 0.9706 GB, free: 17.46 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00222/1.057, allocations: 1.583 MB / 0.9722 GB, free: 17.44 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.005788/1.063, allocations: 5.034 MB / 0.9771 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002218/1.065, allocations: 1.521 MB / 0.9786 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007032/1.066, allocations: 479.9 kB / 0.979 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006886/1.066, allocations: 430.7 kB / 0.9795 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001021/1.067, allocations: 0.689 MB / 0.9801 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=107): time 2.384e-06/1.067, allocations: 3.938 kB / 0.9801 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of matching and sorting (n=107): time 0.003704/1.071, allocations: 1.662 MB / 0.9818 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.417e-05/1.071, allocations: 197.9 kB / 0.9819 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000948/1.072, allocations: 0.8973 MB / 0.9828 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 7.898e-05/1.072, allocations: 47.08 kB / 0.9829 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003441/1.073, allocations: 0.5984 MB / 0.9835 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001974/1.073, allocations: 350.2 kB / 0.9838 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002706/1.073, allocations: 196.3 kB / 0.984 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000109/1.073, allocations: 346.5 kB / 0.9843 GB, free: 12.97 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006317/1.074, allocations: 377.4 kB / 0.9847 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000745/1.075, allocations: 0.5615 MB / 0.9852 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001486/1.076, allocations: 0.9319 MB / 0.9861 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/1.076, allocations: 0.6875 kB / 0.9861 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002315/1.078, allocations: 1.187 MB / 0.9873 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/1.078, allocations: 7.844 kB / 0.9873 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/1.078, allocations: 4.281 kB / 0.9873 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005407/1.079, allocations: 93.39 kB / 0.9874 GB, free: 12.53 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/1.08, allocations: 246.5 kB / 0.9876 GB, free: 12.53 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002214/1.082, allocations: 1.641 MB / 0.9892 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/1.083, allocations: 133.9 kB / 0.9893 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.473e-05/1.083, allocations: 44.7 kB / 0.9894 GB, free: 11.09 MB / 0.7325 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.0006667/1.084, allocations: 338.6 kB / 0.9897 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002289/1.084, allocations: 130.5 kB / 0.9898 GB, free: 10.91 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002724/1.087, allocations: 1.437 MB / 0.9912 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/1.087, allocations: 13.84 kB / 0.9913 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/1.087, allocations: 0 / 0.9913 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/1.087, allocations: 6.328 kB / 0.9913 GB, free: 10.8 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 postOpt removeSimpleEquations (simulation): time 0.004243/1.091, allocations: 2.878 MB / 0.9941 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/1.091, allocations: 0.9062 kB / 0.9941 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008822/1.092, allocations: 218.3 kB / 0.9943 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004039/1.093, allocations: 78.44 kB / 0.9944 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.072e-05/1.093, allocations: 28.67 kB / 0.9944 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001717/1.095, allocations: 1.676 MB / 0.996 GB, free: 8.902 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/1.095, allocations: 3.938 kB / 0.996 GB, free: 8.898 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002385/1.097, allocations: 1.322 MB / 0.9973 GB, free: 8.668 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005807/1.098, allocations: 362.1 kB / 0.9977 GB, free: 8.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001492/1.098, allocations: 31.06 kB / 0.9977 GB, free: 8.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000844/1.099, allocations: 74.17 kB / 0.9978 GB, free: 8.492 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000175/1.099, allocations: 86.53 kB / 0.9978 GB, free: 8.492 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/1.099, allocations: 53.52 kB / 0.9979 GB, free: 8.492 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0008472/1.1, allocations: 0.6183 MB / 0.9985 GB, free: 8.383 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.3e-07/1.1, allocations: 3.188 kB / 0.9985 GB, free: 8.383 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001386/1.101, allocations: 481.2 kB / 0.999 GB, free: 8.305 MB / 0.7325 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.004167/1.105, allocations: 2.477 MB / 1.001 GB, free: 7.418 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002054/1.107, allocations: 1.121 MB / 1.002 GB, free: 7.289 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/1.107, allocations: 4.531 kB / 1.002 GB, free: 7.289 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001058/1.108, allocations: 0.6755 MB / 1.003 GB, free: 7.176 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001878/1.11, allocations: 0.519 MB / 1.004 GB, free: 7.117 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01375/1.124, allocations: 8.991 MB / 1.012 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007513/1.125, allocations: 1.208 MB / 1.014 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001348/1.126, allocations: 387.4 kB / 1.014 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000718/1.127, allocations: 0.5689 MB / 1.015 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of SimCode: time 1.112e-06/1.127, allocations: 0 / 1.015 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07147/1.198, allocations: 33.48 MB / 1.047 GB, free: 13.53 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/13.79, allocations: 8.797 kB / 1.047 GB, free: 13.52 MB / 0.7637 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)