Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.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/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.VolumeFlowRate,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_VolumeFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.VolumeFlowRate,fileNamePrefix="Buildings_9_Buildings_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.0009845/0.0009847, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001251/0.001251, allocations: 172.7 kB / 15.95 MB, free: 208 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.501/1.501, allocations: 223.3 MB / 240 MB, free: 5.43 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.54/2.54, allocations: 390.4 MB / 0.6655 GB, free: 2.871 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004091/0.0004092, allocations: 12 kB / 0.8149 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6834/0.6838, allocations: 142.3 MB / 0.9538 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.VolumeFlowRate): time 0.1993/0.8832, allocations: 152 MB / 1.102 GB, free: 7.664 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003844/0.8871, allocations: 1.466 MB / 1.104 GB, free: 6.195 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007088/0.8879, allocations: 11.88 kB / 1.104 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0007568/0.8887, allocations: 103.3 kB / 1.104 GB, free: 6.082 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002094/0.8908, allocations: 0.5053 MB / 1.104 GB, free: 5.574 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001857/0.8927, allocations: 454 kB / 1.105 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001347/0.894, allocations: 0.8298 MB / 1.106 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003978/0.8945, allocations: 185 kB / 1.106 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006353/0.8951, allocations: 302.8 kB / 1.106 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003011/0.8954, allocations: 219.2 kB / 1.106 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.32e-05/0.8955, allocations: 16 kB / 1.106 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001224/0.8967, allocations: 462.8 kB / 1.107 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.897, allocations: 103.6 kB / 1.107 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.215e-05/0.8971, allocations: 77.58 kB / 1.107 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000616/0.8977, allocations: 439 kB / 1.107 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.8977, allocations: 0 / 1.107 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.244e-06/0.8977, allocations: 0 / 1.107 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.039e-05/0.8977, allocations: 0 / 1.107 GB, free: 2.523 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009884/0.8987, allocations: 0.5999 MB / 1.108 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.8988, allocations: 12.03 kB / 1.108 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.966e-05/0.8988, allocations: 58.55 kB / 1.108 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001092/0.8999, allocations: 147.5 kB / 1.108 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004335/0.9004, allocations: 305.8 kB / 1.108 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.9004, allocations: 12.44 kB / 1.108 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.493e-05/0.9005, allocations: 28 kB / 1.108 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006358/0.9011, allocations: 279.5 kB / 1.109 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.9011, allocations: 0 / 1.109 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.478e-05/0.9012, allocations: 8 kB / 1.109 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.9012, allocations: 11.94 kB / 1.109 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004577/0.9017, allocations: 207.7 kB / 1.109 GB, free: 0.7578 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.001758/0.9034, allocations: 1.213 MB / 1.11 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003215/0.9038, allocations: 138.5 kB / 1.11 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001787/0.9039, allocations: 104.7 kB / 1.11 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005881/0.9045, allocations: 315.2 kB / 1.111 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.9046, allocations: 30.56 kB / 1.111 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.9046, allocations: 0 / 1.111 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of matching and sorting (n=15): time 0.0008957/0.9055, allocations: 301.4 kB / 1.111 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.9055, allocations: 55.36 kB / 1.111 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004346/0.906, allocations: 308.5 kB / 1.111 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.906, allocations: 33.7 kB / 1.111 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.000142/0.9062, allocations: 184.1 kB / 1.112 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.405e-05/0.9062, allocations: 51.28 kB / 1.112 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.252e-05/0.9062, allocations: 8 kB / 1.112 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001849/0.9064, allocations: 334.8 kB / 1.112 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.9066, allocations: 71.89 kB / 1.112 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000277/0.9069, allocations: 130.4 kB / 1.112 GB, free: 13.28 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001794/0.9071, allocations: 88 kB / 1.112 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.9071, allocations: 0 / 1.112 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000497/0.9076, allocations: 248.1 kB / 1.112 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.9076, allocations: 5.875 kB / 1.112 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.9076, allocations: 4 kB / 1.112 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.9077, allocations: 3.984 kB / 1.112 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.9079, allocations: 52.02 kB / 1.112 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.9079, allocations: 7.953 kB / 1.112 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.9081, allocations: 39.61 kB / 1.113 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.293e-05/0.9082, allocations: 8 kB / 1.113 GB, free: 12.83 MB / 0.8731 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001509/0.9083, allocations: 153.8 kB / 1.113 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.782e-05/0.9084, allocations: 31.72 kB / 1.113 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004792/0.9089, allocations: 234.1 kB / 1.113 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.9089, allocations: 0 / 1.113 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.9089, allocations: 0 / 1.113 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.9089, allocations: 11.95 kB / 1.113 GB, free: 12.39 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.9099, allocations: 0.6796 MB / 1.114 GB, free: 11.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.9099, allocations: 7.938 kB / 1.114 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001656/0.9101, allocations: 35.92 kB / 1.114 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.9101, allocations: 4 kB / 1.114 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.9101, allocations: 8 kB / 1.114 GB, free: 11.58 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.9102, allocations: 8.156 kB / 1.114 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.9102, allocations: 4 kB / 1.114 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008148/0.911, allocations: 448.9 kB / 1.114 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.9111, allocations: 124.7 kB / 1.114 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.252e-05/0.9112, allocations: 12.02 kB / 1.114 GB, free: 10.94 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.9113, allocations: 15.98 kB / 1.114 GB, free: 10.93 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.962e-05/0.9114, allocations: 11.98 kB / 1.114 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.9114, allocations: 8 kB / 1.114 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003457/0.9118, allocations: 227 kB / 1.114 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9118, allocations: 4 kB / 1.114 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003996/0.9122, allocations: 75.89 kB / 1.115 GB, free: 10.61 MB / 0.8731 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 (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.001227/0.9134, allocations: 1.046 MB / 1.116 GB, free: 9.52 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004074/0.9138, allocations: 176 kB / 1.116 GB, free: 9.348 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.9139, allocations: 0 / 1.116 GB, free: 9.348 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001756/0.914, allocations: 99.81 kB / 1.116 GB, free: 9.25 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009013/0.9149, allocations: 166.8 kB / 1.116 GB, free: 9.094 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003017/0.918, allocations: 1.764 MB / 1.118 GB, free: 7.238 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004221/0.9184, allocations: 0.7797 MB / 1.118 GB, free: 6.434 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002427/0.9187, allocations: 62.94 kB / 1.119 GB, free: 6.375 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.9188, allocations: 87.41 kB / 1.119 GB, free: 6.289 MB / 0.8731 GB Notification: Performance of SimCode: time 4.51e-07/0.9188, allocations: 4 kB / 1.119 GB, free: 6.285 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02302/0.9418, allocations: 8.226 MB / 1.127 GB, free: 14.27 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000229/0.9421, allocations: 232.3 kB / 1.127 GB, free: 14.02 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.061/3.003, allocations: 3.625 kB / 1.127 GB, free: 14.02 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_VolumeFlowRate_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_VolumeFlowRate.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Sensors.Examples.VolumeFlowRate_res.mat does not exist to compare? outputFormat=mat