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.00495/0.00495, allocations: 100.7 kB / 15.73 MB, free: 5.961 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.001188/0.001188, allocations: 195.3 kB / 16.67 MB, free: 5.883 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.276/1.276, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00212/0.00212, allocations: 293.6 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9126/0.9126, allocations: 169.3 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 99.78 kB / 0.681 GB, free: 7.461 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3956/0.3972, allocations: 86.97 MB / 0.7659 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.Velocity): time 0.1587/0.556, allocations: 167.4 MB / 0.9294 GB, free: 11.84 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.002594/0.5586, allocations: 1.545 MB / 0.9309 GB, free: 10.29 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003696/0.559, allocations: 19.81 kB / 0.9309 GB, free: 10.27 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.0004862/0.5595, allocations: 146.9 kB / 0.9311 GB, free: 10.12 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.001683/0.5612, allocations: 0.7468 MB / 0.9318 GB, free: 9.371 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.001436/0.5627, allocations: 0.6056 MB / 0.9324 GB, free: 8.766 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.0008564/0.5636, allocations: 0.7292 MB / 0.9331 GB, free: 8.035 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003971/0.564, allocations: 229.1 kB / 0.9333 GB, free: 7.812 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006841/0.5647, allocations: 362.6 kB / 0.9337 GB, free: 7.457 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003295/0.565, allocations: 219.1 kB / 0.9339 GB, free: 7.242 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 4.799e-05/0.5651, allocations: 24 kB / 0.9339 GB, free: 7.219 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001315/0.5664, allocations: 0.8728 MB / 0.9347 GB, free: 6.344 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0001303/0.5665, allocations: 107.7 kB / 0.9348 GB, free: 6.238 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.000205/0.5667, allocations: 171.1 kB / 0.935 GB, free: 6.07 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.001182/0.5679, allocations: 0.7489 MB / 0.9357 GB, free: 5.324 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.5679, allocations: 4 kB / 0.9357 GB, free: 5.32 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.843e-06/0.5679, allocations: 0 / 0.9357 GB, free: 5.32 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 1.258e-05/0.568, allocations: 0 / 0.9357 GB, free: 5.32 MB / 0.7012 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.001134/0.5691, allocations: 0.6694 MB / 0.9364 GB, free: 4.598 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.5692, allocations: 8.031 kB / 0.9364 GB, free: 4.59 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.998e-05/0.5692, allocations: 62.53 kB / 0.9365 GB, free: 4.52 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001193/0.5704, allocations: 155.6 kB / 0.9366 GB, free: 4.367 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006193/0.5711, allocations: 334.8 kB / 0.9369 GB, free: 4.004 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.338e-05/0.5711, allocations: 24.5 kB / 0.937 GB, free: 3.98 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.55e-05/0.5712, allocations: 24 kB / 0.937 GB, free: 3.957 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004851/0.5716, allocations: 285.8 kB / 0.9373 GB, free: 3.66 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.5717, allocations: 0 / 0.9373 GB, free: 3.66 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.501e-05/0.5717, allocations: 12 kB / 0.9373 GB, free: 3.648 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.5717, allocations: 4 kB / 0.9373 GB, free: 3.645 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004147/0.5721, allocations: 204.9 kB / 0.9375 GB, free: 3.445 MB / 0.7012 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.001418/0.5736, allocations: 1.231 MB / 0.9387 GB, free: 2.109 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000282/0.5739, allocations: 146.5 kB / 0.9388 GB, free: 1.957 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.574, allocations: 93.12 kB / 0.9389 GB, free: 1.863 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005629/0.5746, allocations: 307.2 kB / 0.9392 GB, free: 1.508 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.5746, allocations: 42.47 kB / 0.9392 GB, free: 1.457 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=17): time 1.242e-06/0.5747, allocations: 0 / 0.9392 GB, free: 1.457 MB / 0.7012 GB Notification: Performance of matching and sorting (n=17): time 0.000774/0.5754, allocations: 293.3 kB / 0.9395 GB, free: 1.164 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.5755, allocations: 51.41 kB / 0.9396 GB, free: 1.102 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003202/0.5758, allocations: 324.5 kB / 0.9399 GB, free: 0.7773 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.5758, allocations: 33.69 kB / 0.9399 GB, free: 0.7383 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.576, allocations: 176.4 kB / 0.9401 GB, free: 0.5625 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 4.77e-05/0.576, allocations: 67.42 kB / 0.9401 GB, free: 0.4961 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.013e-05/0.5761, allocations: 45.7 kB / 0.9402 GB, free: 456 kB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.5762, allocations: 342.8 kB / 0.9405 GB, free: 104 kB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.5764, allocations: 71.89 kB / 0.9406 GB, free: 32 kB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.5766, allocations: 132.1 kB / 0.9407 GB, free: 15.89 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/0.577, allocations: 204.8 kB / 0.9409 GB, free: 15.67 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.577, allocations: 0 / 0.9409 GB, free: 15.67 MB / 0.7169 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000459/0.5775, allocations: 248.5 kB / 0.9411 GB, free: 15.42 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.5775, allocations: 15.22 kB / 0.9411 GB, free: 15.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.5775, allocations: 3.984 kB / 0.9411 GB, free: 15.41 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.5775, allocations: 4 kB / 0.9412 GB, free: 15.4 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001999/0.5777, allocations: 43.92 kB / 0.9412 GB, free: 15.36 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.5777, allocations: 0 / 0.9412 GB, free: 15.36 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002/0.5779, allocations: 35.77 kB / 0.9412 GB, free: 15.32 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.68e-05/0.578, allocations: 11.94 kB / 0.9412 GB, free: 15.31 MB / 0.7169 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.0001376/0.5781, allocations: 153.8 kB / 0.9414 GB, free: 15.15 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.45e-05/0.5782, allocations: 35.81 kB / 0.9414 GB, free: 15.12 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004538/0.5786, allocations: 236.5 kB / 0.9416 GB, free: 14.87 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.5787, allocations: 0 / 0.9416 GB, free: 14.87 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.5787, allocations: 0 / 0.9416 GB, free: 14.87 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.5787, allocations: 144 / 0.9416 GB, free: 14.87 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000986/0.5797, allocations: 0.7069 MB / 0.9423 GB, free: 14.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.5797, allocations: 4 kB / 0.9423 GB, free: 14.08 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001749/0.5799, allocations: 35.95 kB / 0.9424 GB, free: 14.05 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.5799, allocations: 8.219 kB / 0.9424 GB, free: 14.04 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.5799, allocations: 11.94 kB / 0.9424 GB, free: 14.03 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.5799, allocations: 7.938 kB / 0.9424 GB, free: 14.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.5799, allocations: 0 / 0.9424 GB, free: 14.02 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006263/0.5805, allocations: 453 kB / 0.9428 GB, free: 13.54 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.5807, allocations: 128.9 kB / 0.943 GB, free: 13.39 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.826e-05/0.5807, allocations: 11.94 kB / 0.943 GB, free: 13.38 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/0.5809, allocations: 7.984 kB / 0.943 GB, free: 13.38 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.279e-05/0.581, allocations: 20.05 kB / 0.943 GB, free: 13.36 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.581, allocations: 4 kB / 0.943 GB, free: 13.35 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002076/0.5812, allocations: 231 kB / 0.9432 GB, free: 13.13 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5812, allocations: 0 / 0.9432 GB, free: 13.13 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003629/0.5816, allocations: 83.89 kB / 0.9433 GB, free: 13.05 MB / 0.7169 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.001098/0.5827, allocations: 1.053 MB / 0.9443 GB, free: 11.95 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004063/0.5831, allocations: 179.9 kB / 0.9445 GB, free: 11.78 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.5831, allocations: 0 / 0.9445 GB, free: 11.78 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001868/0.5833, allocations: 91.83 kB / 0.9446 GB, free: 11.69 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008195/0.5841, allocations: 170.7 kB / 0.9447 GB, free: 11.52 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003404/0.5875, allocations: 3.01 MB / 0.9477 GB, free: 8.363 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.5879, allocations: 0.7795 MB / 0.9484 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0002045/0.5881, allocations: 70.92 kB / 0.9485 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.5882, allocations: 91.41 kB / 0.9486 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of SimCode: time 3e-07/0.5882, allocations: 0 / 0.9486 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3174/0.9057, allocations: 9.038 MB / 0.9574 GB, free: 190.8 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.767/8.672, allocations: 8.984 kB / 0.9574 GB, free: 190.8 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)