Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.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.Sensors.Examples.VolumeFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_VolumeFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_VolumeFlowRate",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.004103/0.004103, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.0009949/0.0009949, allocations: 193.3 kB / 16.67 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.253/1.253, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002034/0.002034, allocations: 275.1 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.908/0.908, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 92.27 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.146, allocations: 86.97 MB / 0.7659 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate): time 0.4763/0.6223, allocations: 167.4 MB / 0.9293 GB, free: 11.77 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.002251/0.6246, allocations: 1.556 MB / 0.9309 GB, free: 10.21 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001767/0.6248, allocations: 11.94 kB / 0.9309 GB, free: 10.2 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0004/0.6252, allocations: 158.8 kB / 0.931 GB, free: 10.04 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.001365/0.6266, allocations: 0.7312 MB / 0.9317 GB, free: 9.305 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.001169/0.6278, allocations: 0.6045 MB / 0.9323 GB, free: 8.703 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.0006201/0.6284, allocations: 0.7051 MB / 0.933 GB, free: 7.996 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003108/0.6287, allocations: 225.1 kB / 0.9332 GB, free: 7.777 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004677/0.6292, allocations: 338.8 kB / 0.9336 GB, free: 7.445 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002336/0.6294, allocations: 227 kB / 0.9338 GB, free: 7.223 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 3.615e-05/0.6295, allocations: 20 kB / 0.9338 GB, free: 7.203 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001154/0.6307, allocations: 0.8806 MB / 0.9346 GB, free: 6.32 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.6308, allocations: 103.7 kB / 0.9347 GB, free: 6.219 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.000145/0.6309, allocations: 171.1 kB / 0.9349 GB, free: 6.051 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0008338/0.6318, allocations: 0.7219 MB / 0.9356 GB, free: 5.332 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.6318, allocations: 4 kB / 0.9356 GB, free: 5.328 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.243e-06/0.6318, allocations: 0 / 0.9356 GB, free: 5.328 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.6318, allocations: 0 / 0.9356 GB, free: 5.328 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008141/0.6326, allocations: 0.6653 MB / 0.9363 GB, free: 4.613 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.6326, allocations: 8.031 kB / 0.9363 GB, free: 4.605 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.74e-05/0.6327, allocations: 58.55 kB / 0.9363 GB, free: 4.539 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001066/0.6338, allocations: 155.6 kB / 0.9365 GB, free: 4.387 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004502/0.6342, allocations: 321.9 kB / 0.9368 GB, free: 4.031 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.6343, allocations: 16.44 kB / 0.9368 GB, free: 4.016 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.091e-05/0.6343, allocations: 23.95 kB / 0.9368 GB, free: 3.992 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004342/0.6348, allocations: 287.3 kB / 0.9371 GB, free: 3.688 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.6348, allocations: 0 / 0.9371 GB, free: 3.688 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.154e-05/0.6348, allocations: 11.98 kB / 0.9371 GB, free: 3.676 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.6348, allocations: 4 kB / 0.9371 GB, free: 3.672 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003869/0.6352, allocations: 203.8 kB / 0.9373 GB, free: 3.473 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.001202/0.6364, allocations: 1.202 MB / 0.9385 GB, free: 2.168 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000248/0.6367, allocations: 139.3 kB / 0.9386 GB, free: 2.023 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.6368, allocations: 84.8 kB / 0.9387 GB, free: 1.938 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005103/0.6374, allocations: 303.2 kB / 0.939 GB, free: 1.586 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.6374, allocations: 46.42 kB / 0.939 GB, free: 1.531 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.6374, allocations: 0 / 0.939 GB, free: 1.531 MB / 0.6856 GB Notification: Performance of matching and sorting (n=15): time 0.0007086/0.6381, allocations: 283.3 kB / 0.9393 GB, free: 1.25 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.6382, allocations: 59.34 kB / 0.9394 GB, free: 1.18 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002774/0.6385, allocations: 312.5 kB / 0.9397 GB, free: 0.8672 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.6385, allocations: 29.7 kB / 0.9397 GB, free: 0.832 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.6386, allocations: 180.3 kB / 0.9399 GB, free: 0.6484 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 4.488e-05/0.6386, allocations: 51.58 kB / 0.9399 GB, free: 0.5977 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.677e-05/0.6387, allocations: 53.59 kB / 0.94 GB, free: 0.5391 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.6388, allocations: 346.8 kB / 0.9403 GB, free: 196 kB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.639, allocations: 59.95 kB / 0.9403 GB, free: 136 kB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.6392, allocations: 129.5 kB / 0.9405 GB, free: 15.99 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.6395, allocations: 192.9 kB / 0.9407 GB, free: 15.78 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.6395, allocations: 4 kB / 0.9407 GB, free: 15.78 MB / 0.7012 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004337/0.64, allocations: 240.3 kB / 0.9409 GB, free: 15.54 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.64, allocations: 10.44 kB / 0.9409 GB, free: 15.53 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.64, allocations: 6 kB / 0.9409 GB, free: 15.53 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.64, allocations: 0 / 0.9409 GB, free: 15.53 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000192/0.6402, allocations: 43.92 kB / 0.9409 GB, free: 15.48 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.6402, allocations: 4 kB / 0.9409 GB, free: 15.48 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/0.6404, allocations: 31.77 kB / 0.941 GB, free: 15.45 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/0.6405, allocations: 8 kB / 0.941 GB, free: 15.44 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001261/0.6406, allocations: 158.3 kB / 0.9411 GB, free: 15.28 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.362e-05/0.6407, allocations: 31.81 kB / 0.9412 GB, free: 15.25 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004199/0.6411, allocations: 217.2 kB / 0.9414 GB, free: 15.03 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.6411, allocations: 4 kB / 0.9414 GB, free: 15.02 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.6411, allocations: 1.062 kB / 0.9414 GB, free: 15.02 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.6411, allocations: 0 / 0.9414 GB, free: 15.02 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009489/0.6421, allocations: 0.6859 MB / 0.942 GB, free: 14.26 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.6421, allocations: 4 kB / 0.9421 GB, free: 14.26 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.6422, allocations: 35.97 kB / 0.9421 GB, free: 14.22 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.6423, allocations: 8.156 kB / 0.9421 GB, free: 14.21 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.6423, allocations: 8 kB / 0.9421 GB, free: 14.21 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.6423, allocations: 2.438 kB / 0.9421 GB, free: 14.21 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.6423, allocations: 7.938 kB / 0.9421 GB, free: 14.2 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005823/0.6429, allocations: 427 kB / 0.9425 GB, free: 13.75 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.643, allocations: 120.9 kB / 0.9426 GB, free: 13.61 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.468e-05/0.6431, allocations: 11.94 kB / 0.9426 GB, free: 13.6 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.6432, allocations: 7.984 kB / 0.9427 GB, free: 13.59 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.632e-05/0.6433, allocations: 23.98 kB / 0.9427 GB, free: 13.57 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.368e-06/0.6433, allocations: 4 kB / 0.9427 GB, free: 13.56 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0001931/0.6435, allocations: 227 kB / 0.9429 GB, free: 13.34 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6435, allocations: 3.938 kB / 0.9429 GB, free: 13.34 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.0003563/0.6439, allocations: 75.94 kB / 0.943 GB, free: 13.27 MB / 0.7012 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 1 (senDyn.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001094/0.645, allocations: 1.032 MB / 0.944 GB, free: 12.19 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.000399/0.6454, allocations: 175.9 kB / 0.9441 GB, free: 12.02 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.6454, allocations: 3.938 kB / 0.9442 GB, free: 12.02 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0001767/0.6456, allocations: 83.89 kB / 0.9442 GB, free: 11.93 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008243/0.6464, allocations: 166 kB / 0.9444 GB, free: 11.78 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00322/0.6496, allocations: 2.916 MB / 0.9472 GB, free: 8.719 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.6499, allocations: 0.7834 MB / 0.948 GB, free: 7.91 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.0001871/0.6501, allocations: 62.92 kB / 0.9481 GB, free: 7.848 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.6503, allocations: 87.41 kB / 0.9481 GB, free: 7.762 MB / 0.7012 GB Notification: Performance of SimCode: time 2.1e-07/0.6503, allocations: 0 / 0.9481 GB, free: 7.762 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02674/0.677, allocations: 8.856 MB / 0.9568 GB, free: 15.13 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.545/8.222, allocations: 0.5938 kB / 0.9568 GB, free: 15.13 MB / 0.7169 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_VolumeFlowRate.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe 2>&1)