Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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(Buildings.Fluid.Sensors.Examples.Velocity,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_Velocity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Velocity,fileNamePrefix="Buildings_9_Buildings_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.001234/0.001234, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001441/0.001441, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 223.2 MB / 239.9 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.354/2.354, allocations: 390.3 MB / 0.6653 GB, free: 2.906 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003522/0.0003523, allocations: 15.98 kB / 0.8146 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7051/0.7054, allocations: 142.3 MB / 0.9536 GB, free: 8.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Velocity): time 0.169/0.8745, allocations: 140.2 MB / 1.09 GB, free: 3.613 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002474/0.877, allocations: 1.576 MB / 1.092 GB, free: 2.035 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002126/0.8773, allocations: 15.88 kB / 1.092 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0005809/0.8779, allocations: 179.2 kB / 1.092 GB, free: 1.844 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.00111/0.879, allocations: 0.518 MB / 1.093 GB, free: 1.324 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.8801, allocations: 485.3 kB / 1.093 GB, free: 0.8555 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0005258/0.8806, allocations: 448.4 kB / 1.094 GB, free: 424 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003259/0.8809, allocations: 193.1 kB / 1.094 GB, free: 228 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007219/0.8817, allocations: 351 kB / 1.094 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001939/0.8819, allocations: 155.4 kB / 1.094 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.215e-05/0.8819, allocations: 12 kB / 1.094 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008773/0.8828, allocations: 427.3 kB / 1.095 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.8829, allocations: 95.7 kB / 1.095 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.929e-05/0.883, allocations: 89.52 kB / 1.095 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005237/0.8835, allocations: 399 kB / 1.095 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.8836, allocations: 0 / 1.095 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.513e-06/0.8836, allocations: 0 / 1.095 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.8836, allocations: 0 / 1.095 GB, free: 14.72 MB / 0.8575 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.000891/0.8845, allocations: 0.5972 MB / 1.096 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.8845, allocations: 8.031 kB / 1.096 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.567e-05/0.8846, allocations: 70.42 kB / 1.096 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001136/0.8857, allocations: 163.3 kB / 1.096 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005042/0.8863, allocations: 298.9 kB / 1.096 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/0.8863, allocations: 24.56 kB / 1.096 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.37e-05/0.8864, allocations: 16 kB / 1.096 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005449/0.8869, allocations: 289.8 kB / 1.097 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.8869, allocations: 4 kB / 1.097 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.264e-05/0.887, allocations: 8 kB / 1.097 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.887, allocations: 11.95 kB / 1.097 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000441/0.8874, allocations: 212.7 kB / 1.097 GB, free: 12.92 MB / 0.8575 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.001503/0.8889, allocations: 1.227 MB / 1.098 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003073/0.8893, allocations: 154.4 kB / 1.098 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003994/0.8897, allocations: 137 kB / 1.098 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.8897, allocations: 38.56 kB / 1.098 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=17): time 1.443e-06/0.8897, allocations: 0 / 1.098 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of matching and sorting (n=17): time 0.0007768/0.8905, allocations: 306.8 kB / 1.099 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.8906, allocations: 67.33 kB / 1.099 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003323/0.8909, allocations: 316.5 kB / 1.099 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.8909, allocations: 25.7 kB / 1.099 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.8911, allocations: 188.1 kB / 1.099 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.497e-05/0.8911, allocations: 59.14 kB / 1.099 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.594e-05/0.8912, allocations: 4 kB / 1.099 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.8913, allocations: 342.8 kB / 1.1 GB, free: 9.906 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00017/0.8915, allocations: 79.94 kB / 1.1 GB, free: 9.828 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000298/0.8918, allocations: 129.6 kB / 1.1 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000265/0.8921, allocations: 94.34 kB / 1.1 GB, free: 9.594 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.8921, allocations: 0 / 1.1 GB, free: 9.594 MB / 0.8575 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006725/0.8928, allocations: 265.1 kB / 1.1 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.8928, allocations: 4 kB / 1.1 GB, free: 9.324 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.8928, allocations: 4 kB / 1.1 GB, free: 9.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.8928, allocations: 0 / 1.1 GB, free: 9.32 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002867/0.8931, allocations: 52.05 kB / 1.1 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.8931, allocations: 0 / 1.1 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002976/0.8934, allocations: 51.67 kB / 1.1 GB, free: 9.219 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.587e-05/0.8935, allocations: 8 kB / 1.1 GB, free: 9.211 MB / 0.8575 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002339/0.8937, allocations: 157.7 kB / 1.1 GB, free: 9.047 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.333e-05/0.8938, allocations: 31.61 kB / 1.1 GB, free: 9.016 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006566/0.8945, allocations: 245.7 kB / 1.101 GB, free: 8.77 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/0.8945, allocations: 4 kB / 1.101 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.8945, allocations: 0 / 1.101 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.8945, allocations: 0 / 1.101 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001449/0.896, allocations: 0.7146 MB / 1.101 GB, free: 7.973 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.896, allocations: 0 / 1.101 GB, free: 7.973 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002405/0.8963, allocations: 48.12 kB / 1.101 GB, free: 7.926 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.413e-06/0.8963, allocations: 0 / 1.101 GB, free: 7.926 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.8963, allocations: 11.95 kB / 1.101 GB, free: 7.914 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.111e-06/0.8963, allocations: 4 kB / 1.101 GB, free: 7.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.704e-06/0.8963, allocations: 7.938 kB / 1.102 GB, free: 7.902 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.8973, allocations: 0.5253 MB / 1.102 GB, free: 7.297 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001777/0.8975, allocations: 132.8 kB / 1.102 GB, free: 7.148 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.88e-05/0.8976, allocations: 4 kB / 1.102 GB, free: 7.145 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002758/0.8979, allocations: 23.89 kB / 1.102 GB, free: 7.121 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.058e-05/0.898, allocations: 11.92 kB / 1.102 GB, free: 7.109 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.929e-05/0.898, allocations: 12.09 kB / 1.102 GB, free: 7.098 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003194/0.8983, allocations: 235 kB / 1.102 GB, free: 6.867 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8983, allocations: 0 / 1.102 GB, free: 6.867 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006055/0.8989, allocations: 76 kB / 1.102 GB, free: 6.793 MB / 0.8575 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001892/0.9008, allocations: 1.627 MB / 1.104 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005902/0.9014, allocations: 187.9 kB / 1.104 GB, free: 4.918 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.9015, allocations: 0 / 1.104 GB, free: 4.918 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002941/0.9018, allocations: 95.83 kB / 1.104 GB, free: 4.824 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008546/0.9026, allocations: 172.3 kB / 1.105 GB, free: 4.656 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003057/0.9057, allocations: 2.578 MB / 1.107 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.9061, allocations: 0.7953 MB / 1.108 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002292/0.9063, allocations: 70.92 kB / 1.108 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.9064, allocations: 91.41 kB / 1.108 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of SimCode: time 4.41e-07/0.9064, allocations: 0 / 1.108 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02665/0.9331, allocations: 8.376 MB / 1.116 GB, free: 8.836 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002531/0.9334, allocations: 205.7 kB / 1.116 GB, free: 8.602 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.923/2.856, allocations: 3.938 kB / 1.116 GB, free: 8.598 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_Velocity_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_Velocity.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity_res.mat does not exist to compare? outputFormat=mat