Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.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.Velocity,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_Velocity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.Velocity,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_Velocity",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.004956/0.004956, allocations: 101 kB / 15.73 MB, free: 6.059 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.001351/0.001351, allocations: 192.2 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 4.195 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002342/0.002343, allocations: 283 kB / 290.8 MB, free: 1.797 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9729/0.9729, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00254/0.00254, allocations: 92.2 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1655/0.1681, allocations: 86.96 MB / 0.7659 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.Velocity): time 0.5065/0.6746, allocations: 167.4 MB / 0.9294 GB, free: 11.72 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.00272/0.6774, allocations: 1.567 MB / 0.9309 GB, free: 10.15 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002278/0.6776, allocations: 11.94 kB / 0.9309 GB, free: 10.14 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0004539/0.6781, allocations: 146.9 kB / 0.9311 GB, free: 9.996 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.001668/0.6798, allocations: 0.7 MB / 0.9318 GB, free: 9.293 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.001483/0.6813, allocations: 0.6011 MB / 0.9323 GB, free: 8.691 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.0008361/0.6821, allocations: 0.7137 MB / 0.933 GB, free: 7.977 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000373/0.6825, allocations: 237.1 kB / 0.9333 GB, free: 7.746 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005842/0.6831, allocations: 346.7 kB / 0.9336 GB, free: 7.406 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000309/0.6834, allocations: 231 kB / 0.9338 GB, free: 7.18 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 4.164e-05/0.6835, allocations: 24 kB / 0.9338 GB, free: 7.156 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001409/0.6849, allocations: 0.865 MB / 0.9347 GB, free: 6.289 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.685, allocations: 111.7 kB / 0.9348 GB, free: 6.18 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0001792/0.6852, allocations: 171.1 kB / 0.935 GB, free: 6.012 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.00109/0.6863, allocations: 0.7453 MB / 0.9357 GB, free: 5.27 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.6863, allocations: 0 / 0.9357 GB, free: 5.27 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.533e-06/0.6863, allocations: 7.938 kB / 0.9357 GB, free: 5.262 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.6864, allocations: 0 / 0.9357 GB, free: 5.262 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0009835/0.6873, allocations: 0.6771 MB / 0.9364 GB, free: 4.531 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.6874, allocations: 8.031 kB / 0.9364 GB, free: 4.523 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.912e-05/0.6875, allocations: 58.53 kB / 0.9364 GB, free: 4.457 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00106/0.6885, allocations: 155.6 kB / 0.9366 GB, free: 4.305 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005027/0.689, allocations: 322.9 kB / 0.9369 GB, free: 3.953 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.6891, allocations: 20.56 kB / 0.9369 GB, free: 3.934 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.677e-05/0.6891, allocations: 23.94 kB / 0.9369 GB, free: 3.91 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004994/0.6896, allocations: 297.8 kB / 0.9372 GB, free: 3.602 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.6897, allocations: 0 / 0.9372 GB, free: 3.602 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.6897, allocations: 12 kB / 0.9372 GB, free: 3.59 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.403e-06/0.6897, allocations: 4 kB / 0.9372 GB, free: 3.586 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004259/0.6901, allocations: 208.9 kB / 0.9374 GB, free: 3.383 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.001471/0.6916, allocations: 1.231 MB / 0.9386 GB, free: 2.047 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002877/0.6919, allocations: 148.4 kB / 0.9388 GB, free: 1.895 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001894/0.6921, allocations: 100.8 kB / 0.9389 GB, free: 1.793 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005666/0.6927, allocations: 303.2 kB / 0.9391 GB, free: 1.441 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.6927, allocations: 34.56 kB / 0.9392 GB, free: 1.398 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=17): time 1.343e-06/0.6927, allocations: 3.938 kB / 0.9392 GB, free: 1.395 MB / 0.6856 GB Notification: Performance of matching and sorting (n=17): time 0.0007781/0.6935, allocations: 292.5 kB / 0.9395 GB, free: 1.105 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.6936, allocations: 55.31 kB / 0.9395 GB, free: 1.039 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003452/0.6939, allocations: 324.5 kB / 0.9398 GB, free: 0.7148 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.694, allocations: 33.7 kB / 0.9399 GB, free: 0.6758 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.6941, allocations: 180.3 kB / 0.94 GB, free: 0.4961 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 6.419e-05/0.6942, allocations: 71.41 kB / 0.9401 GB, free: 436 kB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.784e-05/0.6943, allocations: 41.7 kB / 0.9401 GB, free: 388 kB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001579/0.6944, allocations: 338.8 kB / 0.9405 GB, free: 40 kB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.6946, allocations: 72.03 kB / 0.9405 GB, free: 15.96 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002262/0.6948, allocations: 132.7 kB / 0.9406 GB, free: 15.82 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00037/0.6952, allocations: 194.4 kB / 0.9408 GB, free: 15.61 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.6952, allocations: 3.938 kB / 0.9408 GB, free: 15.61 MB / 0.7012 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004857/0.6957, allocations: 256 kB / 0.9411 GB, free: 15.36 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.6958, allocations: 4 kB / 0.9411 GB, free: 15.35 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.6958, allocations: 8.094 kB / 0.9411 GB, free: 15.34 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.6958, allocations: 3.984 kB / 0.9411 GB, free: 15.34 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001959/0.696, allocations: 47.91 kB / 0.9411 GB, free: 15.29 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.696, allocations: 0 / 0.9411 GB, free: 15.29 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000189/0.6962, allocations: 37.2 kB / 0.9412 GB, free: 15.26 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.869e-05/0.6962, allocations: 8 kB / 0.9412 GB, free: 15.25 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 (24): * Single equations (assignments): 24 * 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.0001454/0.6964, allocations: 158.4 kB / 0.9413 GB, free: 15.09 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.343e-05/0.6964, allocations: 31.8 kB / 0.9414 GB, free: 15.05 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004811/0.6969, allocations: 228.7 kB / 0.9416 GB, free: 14.82 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.822e-05/0.697, allocations: 6.312 kB / 0.9416 GB, free: 14.81 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.697, allocations: 3.938 kB / 0.9416 GB, free: 14.81 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.697, allocations: 0 / 0.9416 GB, free: 14.81 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.698, allocations: 0.7029 MB / 0.9423 GB, free: 14.03 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.6981, allocations: 4 kB / 0.9423 GB, free: 14.03 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.6982, allocations: 39.91 kB / 0.9423 GB, free: 13.99 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.6982, allocations: 0 / 0.9423 GB, free: 13.99 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.6983, allocations: 8.219 kB / 0.9423 GB, free: 13.98 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.6983, allocations: 11.94 kB / 0.9423 GB, free: 13.97 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.6983, allocations: 96 / 0.9423 GB, free: 13.97 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006828/0.699, allocations: 459.5 kB / 0.9428 GB, free: 13.48 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.6991, allocations: 124.8 kB / 0.9429 GB, free: 13.34 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.175e-05/0.6991, allocations: 8 kB / 0.9429 GB, free: 13.34 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.6993, allocations: 7.938 kB / 0.9429 GB, free: 13.33 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.893e-05/0.6994, allocations: 27.97 kB / 0.9429 GB, free: 13.3 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.6994, allocations: 8 kB / 0.9429 GB, free: 13.29 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0002298/0.6996, allocations: 227 kB / 0.9432 GB, free: 13.07 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6996, allocations: 0 / 0.9432 GB, free: 13.07 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.0003724/0.7, allocations: 87.89 kB / 0.9432 GB, free: 12.99 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 (17): * Single equations (assignments): 17 * 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.001259/0.7013, allocations: 1.038 MB / 0.9443 GB, free: 11.91 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.0004267/0.7017, allocations: 182.6 kB / 0.9444 GB, free: 11.73 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.7017, allocations: 4.188 kB / 0.9444 GB, free: 11.73 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0001934/0.7019, allocations: 95.81 kB / 0.9445 GB, free: 11.64 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000842/0.7028, allocations: 167 kB / 0.9447 GB, free: 11.48 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003755/0.7066, allocations: 3.013 MB / 0.9476 GB, free: 8.332 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004221/0.707, allocations: 0.7795 MB / 0.9484 GB, free: 7.527 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.0002006/0.7072, allocations: 74.91 kB / 0.9485 GB, free: 7.457 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.7073, allocations: 95.41 kB / 0.9486 GB, free: 7.363 MB / 0.7012 GB Notification: Performance of SimCode: time 2.61e-07/0.7074, allocations: 0 / 0.9486 GB, free: 7.363 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03318/0.7405, allocations: 9.03 MB / 0.9574 GB, free: 14.54 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.794/8.535, allocations: 4.578 kB / 0.9574 GB, free: 14.54 MB / 0.7169 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity_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_Velocity.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.pipe 2>&1)