Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="IDEAS_dev_IDEAS_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.004584/0.004584, allocations: 97.92 kB / 15.73 MB, free: 6.004 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.001122/0.001122, allocations: 197.2 kB / 16.67 MB, free: 5.922 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9474/0.9474, allocations: 135.1 MB / 425.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 71.88 kB / 0.5851 GB, free: 3.867 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4392/0.4406, allocations: 80.91 MB / 0.6642 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1843/0.625, allocations: 175.8 MB / 0.8358 GB, free: 1.176 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01732/0.6424, allocations: 12.64 MB / 0.8482 GB, free: 4.496 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001644/0.644, allocations: 35.81 kB / 0.8482 GB, free: 4.461 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.001298/0.6454, allocations: 440.7 kB / 0.8486 GB, free: 4.027 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.002985/0.6484, allocations: 0.9559 MB / 0.8496 GB, free: 3.07 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.004767/0.6532, allocations: 1.844 MB / 0.8514 GB, free: 1.234 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.003038/0.6562, allocations: 2.287 MB / 0.8536 GB, free: 14.94 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002516/0.6587, allocations: 1.586 MB / 0.8552 GB, free: 13.31 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004546/0.6633, allocations: 1.396 MB / 0.8565 GB, free: 11.94 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001394/0.6647, allocations: 0.809 MB / 0.8573 GB, free: 11.12 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0004882/0.6652, allocations: 156 kB / 0.8575 GB, free: 10.97 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00337/0.6686, allocations: 1.412 MB / 0.8588 GB, free: 9.559 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0006125/0.6692, allocations: 466.6 kB / 0.8593 GB, free: 9.102 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.001204/0.6704, allocations: 0.8007 MB / 0.8601 GB, free: 8.297 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.004839/0.6753, allocations: 2.656 MB / 0.8627 GB, free: 5.633 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.6753, allocations: 4 kB / 0.8627 GB, free: 5.629 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.994e-06/0.6753, allocations: 0 / 0.8627 GB, free: 5.629 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 8.087e-05/0.6754, allocations: 0 / 0.8627 GB, free: 5.629 MB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 0.004223/0.6796, allocations: 1.955 MB / 0.8646 GB, free: 3.613 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.6797, allocations: 12.03 kB / 0.8646 GB, free: 3.602 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003363/0.68, allocations: 194.3 kB / 0.8648 GB, free: 3.402 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002677/0.6827, allocations: 414.5 kB / 0.8652 GB, free: 2.996 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001771/0.6845, allocations: 0.9887 MB / 0.8661 GB, free: 1.965 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.445e-05/0.6846, allocations: 102.6 kB / 0.8662 GB, free: 1.863 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001743/0.6848, allocations: 124 kB / 0.8663 GB, free: 1.742 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0025/0.6873, allocations: 1.467 MB / 0.8678 GB, free: 204 kB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.195e-05/0.6873, allocations: 3.984 kB / 0.8678 GB, free: 200 kB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001239/0.6874, allocations: 59.94 kB / 0.8678 GB, free: 140 kB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.745e-05/0.6875, allocations: 35.94 kB / 0.8679 GB, free: 104 kB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3321/1.02, allocations: 1.531 MB / 0.8694 GB, free: 193.1 MB / 0.6856 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.007626/1.027, allocations: 4.887 MB / 0.8741 GB, free: 190.1 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002412/1.03, allocations: 1.42 MB / 0.8755 GB, free: 189.3 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008051/1.031, allocations: 450.3 kB / 0.876 GB, free: 189.1 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007102/1.031, allocations: 423.5 kB / 0.8764 GB, free: 188.8 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001172/1.032, allocations: 0.6242 MB / 0.877 GB, free: 188.4 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=98): time 2.535e-06/1.032, allocations: 0 / 0.877 GB, free: 188.4 MB / 0.6856 GB Notification: Performance of matching and sorting (n=98): time 0.004315/1.037, allocations: 1.542 MB / 0.8785 GB, free: 187.6 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.511e-05/1.037, allocations: 192.6 kB / 0.8787 GB, free: 187.4 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001654/1.039, allocations: 0.8497 MB / 0.8795 GB, free: 186.9 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001347/1.039, allocations: 44.17 kB / 0.8795 GB, free: 186.8 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.000461/1.039, allocations: 0.5871 MB / 0.8801 GB, free: 186.4 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002592/1.039, allocations: 344.2 kB / 0.8804 GB, free: 186.1 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003457/1.04, allocations: 187.9 kB / 0.8806 GB, free: 186 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.114e-05/1.04, allocations: 338.8 kB / 0.8809 GB, free: 185.7 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007769/1.041, allocations: 344.9 kB / 0.8813 GB, free: 185.5 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007922/1.041, allocations: 0.5317 MB / 0.8818 GB, free: 185.1 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/1.043, allocations: 0.8728 MB / 0.8826 GB, free: 184.6 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/1.043, allocations: 3.375 kB / 0.8826 GB, free: 184.6 MB / 0.6856 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.002494/1.046, allocations: 1.112 MB / 0.8837 GB, free: 184.1 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/1.046, allocations: 5.812 kB / 0.8837 GB, free: 184.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/1.046, allocations: 3.844 kB / 0.8837 GB, free: 184.1 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005815/1.046, allocations: 88.8 kB / 0.8838 GB, free: 184 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/1.047, allocations: 227.8 kB / 0.884 GB, free: 184 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001769/1.049, allocations: 1.653 MB / 0.8856 GB, free: 182.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009942/1.05, allocations: 128.2 kB / 0.8858 GB, free: 182.3 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.967e-05/1.05, allocations: 35.8 kB / 0.8858 GB, free: 182.3 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 6 (weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 110 * 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.0006449/1.051, allocations: 326.6 kB / 0.8861 GB, free: 182.1 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002549/1.051, allocations: 123.1 kB / 0.8862 GB, free: 182 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002818/1.054, allocations: 1.331 MB / 0.8875 GB, free: 181.3 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/1.054, allocations: 11.88 kB / 0.8875 GB, free: 181.3 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/1.054, allocations: 0 / 0.8875 GB, free: 181.3 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/1.054, allocations: 5.141 kB / 0.8875 GB, free: 181.3 MB / 0.6856 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.004325/1.058, allocations: 2.697 MB / 0.8902 GB, free: 179.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/1.058, allocations: 0 / 0.8902 GB, free: 179.5 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009841/1.059, allocations: 218.7 kB / 0.8904 GB, free: 179.4 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004262/1.06, allocations: 77.47 kB / 0.8905 GB, free: 179.4 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.609e-05/1.06, allocations: 34.34 kB / 0.8905 GB, free: 179.4 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001544/1.061, allocations: 1.66 MB / 0.8921 GB, free: 177.8 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/1.061, allocations: 0 / 0.8921 GB, free: 177.8 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00249/1.064, allocations: 1.237 MB / 0.8933 GB, free: 177.1 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005941/1.064, allocations: 348.1 kB / 0.8937 GB, free: 176.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002217/1.065, allocations: 25.22 kB / 0.8937 GB, free: 176.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008523/1.065, allocations: 68.38 kB / 0.8937 GB, free: 176.8 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/1.066, allocations: 73.11 kB / 0.8938 GB, free: 176.7 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.751e-05/1.066, allocations: 45.56 kB / 0.8939 GB, free: 176.7 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.000821/1.067, allocations: 0.5959 MB / 0.8944 GB, free: 176.4 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.2e-07/1.067, allocations: 0 / 0.8944 GB, free: 176.4 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0014/1.068, allocations: 468.5 kB / 0.8949 GB, free: 176.2 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.004087/1.072, allocations: 2.387 MB / 0.8972 GB, free: 174.8 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002332/1.074, allocations: 1.038 MB / 0.8982 GB, free: 174.3 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/1.074, allocations: 2.312 kB / 0.8982 GB, free: 174.3 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.00121/1.076, allocations: 0.6378 MB / 0.8989 GB, free: 173.9 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002987/1.079, allocations: 0.5089 MB / 0.8994 GB, free: 173.7 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02129/1.1, allocations: 8.545 MB / 0.9077 GB, free: 168.5 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008403/1.101, allocations: 1.187 MB / 0.9089 GB, free: 167.6 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001404/1.102, allocations: 370.6 kB / 0.9092 GB, free: 167.4 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007366/1.103, allocations: 0.537 MB / 0.9097 GB, free: 167 MB / 0.6856 GB Notification: Performance of SimCode: time 7.91e-07/1.103, allocations: 0 / 0.9097 GB, free: 167 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07157/1.175, allocations: 31.98 MB / 0.941 GB, free: 136.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/14.34, allocations: 22.44 kB / 0.941 GB, free: 136.6 MB / 0.6856 GB (rm -f IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 IDEAS_dev_IDEAS_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > IDEAS_dev_IDEAS.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)