Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.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.Actuators.Dampers.Examples.MixingBoxMinimumFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Dampers_Examples_MixingBoxMinimumFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Dampers_Examples_MixingBoxMinimumFlow",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.00122/0.001221, allocations: 99.94 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.001414/0.001414, allocations: 177.3 kB / 15.95 MB, free: 216 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.415/1.415, allocations: 223.2 MB / 239.9 MB, free: 5.445 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.509/2.509, allocations: 390.3 MB / 0.6653 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005662/0.0005665, allocations: 8 kB / 0.8146 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7766/0.7772, allocations: 142.3 MB / 0.9536 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow): time 0.2029/0.9802, allocations: 164.4 MB / 1.114 GB, free: 11.37 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.009533/0.9898, allocations: 5.022 MB / 1.119 GB, free: 6.34 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002074/0.9919, allocations: 27.81 kB / 1.119 GB, free: 6.312 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002027/0.994, allocations: 0.5364 MB / 1.12 GB, free: 5.773 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.00667/1.001, allocations: 1.803 MB / 1.121 GB, free: 3.965 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.00339/1.004, allocations: 1.053 MB / 1.122 GB, free: 2.93 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.003849/1.008, allocations: 1.624 MB / 1.124 GB, free: 1.293 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001982/1.01, allocations: 1.13 MB / 1.125 GB, free: 160 kB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002646/1.013, allocations: 1.094 MB / 1.126 GB, free: 15.06 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001701/1.014, allocations: 0.8563 MB / 1.127 GB, free: 14.2 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0003053/1.015, allocations: 83.94 kB / 1.127 GB, free: 14.12 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002113/1.017, allocations: 0.7177 MB / 1.128 GB, free: 13.4 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0005359/1.017, allocations: 410.7 kB / 1.128 GB, free: 13 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0004759/1.018, allocations: 277 kB / 1.128 GB, free: 12.72 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.002373/1.02, allocations: 1.827 MB / 1.13 GB, free: 10.89 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/1.02, allocations: 0 / 1.13 GB, free: 10.89 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.394e-06/1.02, allocations: 0 / 1.13 GB, free: 10.89 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.141e-05/1.02, allocations: 0 / 1.13 GB, free: 10.89 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.005696/1.026, allocations: 1.824 MB / 1.132 GB, free: 9.012 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/1.026, allocations: 8.031 kB / 1.132 GB, free: 9.004 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00032/1.026, allocations: 110.5 kB / 1.132 GB, free: 8.887 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001267/1.028, allocations: 226 kB / 1.132 GB, free: 8.664 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003003/1.031, allocations: 1.256 MB / 1.134 GB, free: 7.355 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/1.031, allocations: 65.61 kB / 1.134 GB, free: 7.289 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001635/1.031, allocations: 83.95 kB / 1.134 GB, free: 7.207 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/1.033, allocations: 0.8067 MB / 1.134 GB, free: 6.395 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/1.033, allocations: 3.938 kB / 1.134 GB, free: 6.391 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.464e-05/1.033, allocations: 28 kB / 1.135 GB, free: 6.363 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.411e-05/1.033, allocations: 25.25 kB / 1.135 GB, free: 6.336 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001718/1.035, allocations: 0.8601 MB / 1.135 GB, free: 5.477 MB / 0.8887 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.006629/1.041, allocations: 3.474 MB / 1.139 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/1.043, allocations: 0.7549 MB / 1.14 GB, free: 1.062 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 8.667e-05/1.043, allocations: 24.41 kB / 1.14 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/1.043, allocations: 39 kB / 1.14 GB, free: 0.9922 MB / 0.8887 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001235/1.044, allocations: 239.3 kB / 1.14 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=53): time 3.106e-06/1.044, allocations: 0 / 1.14 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of matching and sorting (n=53): time 0.003081/1.047, allocations: 1.341 MB / 1.141 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/1.047, allocations: 59.78 kB / 1.141 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002772/1.05, allocations: 1.621 MB / 1.143 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001476/1.05, allocations: 41.7 kB / 1.143 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004642/1.051, allocations: 0.5346 MB / 1.143 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001841/1.051, allocations: 177.3 kB / 1.143 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-05/1.051, allocations: 12 kB / 1.143 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001254/1.051, allocations: 329.9 kB / 1.144 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007069/1.052, allocations: 352.9 kB / 1.144 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000928/1.053, allocations: 0.6168 MB / 1.145 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007748/1.053, allocations: 429.9 kB / 1.145 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/1.053, allocations: 0 / 1.145 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.002035/1.055, allocations: 0.966 MB / 1.146 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.803e-05/1.056, allocations: 93.2 kB / 1.146 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/1.056, allocations: 4 kB / 1.146 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/1.056, allocations: 4 kB / 1.146 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008755/1.056, allocations: 171.7 kB / 1.146 GB, free: 9.875 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/1.056, allocations: 4 kB / 1.146 GB, free: 9.871 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001865/1.058, allocations: 167.7 kB / 1.147 GB, free: 9.711 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.364e-05/1.058, allocations: 31.97 kB / 1.147 GB, free: 9.68 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/1.058, allocations: 11.94 kB / 1.147 GB, free: 9.668 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001647/1.06, allocations: 0.8135 MB / 1.147 GB, free: 8.852 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.986e-06/1.06, allocations: 0 / 1.147 GB, free: 8.852 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.494e-06/1.06, allocations: 4 kB / 1.147 GB, free: 8.848 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007969/1.061, allocations: 171.7 kB / 1.148 GB, free: 8.68 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/1.061, allocations: 0 / 1.148 GB, free: 8.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00191/1.063, allocations: 166.6 kB / 1.148 GB, free: 8.523 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-05/1.063, allocations: 31.95 kB / 1.148 GB, free: 8.492 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (57): * Single equations (assignments): 57 * 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.000627/1.064, allocations: 372.9 kB / 1.148 GB, free: 8.117 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003613/1.064, allocations: 130.4 kB / 1.148 GB, free: 7.988 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002224/1.066, allocations: 1.054 MB / 1.149 GB, free: 6.926 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/1.066, allocations: 8 kB / 1.149 GB, free: 6.918 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/1.066, allocations: 0 / 1.149 GB, free: 6.918 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/1.066, allocations: 3.984 kB / 1.149 GB, free: 6.914 MB / 0.9044 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 postOpt removeSimpleEquations (simulation): time 0.004218/1.07, allocations: 2.489 MB / 1.152 GB, free: 4.324 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/1.071, allocations: 4 kB / 1.152 GB, free: 4.32 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000801/1.071, allocations: 136.1 kB / 1.152 GB, free: 4.188 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-05/1.071, allocations: 12 kB / 1.152 GB, free: 4.176 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.217e-05/1.071, allocations: 19.95 kB / 1.152 GB, free: 4.156 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.585e-06/1.071, allocations: 4 kB / 1.152 GB, free: 4.152 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/1.071, allocations: 4 kB / 1.152 GB, free: 4.148 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002779/1.074, allocations: 1.683 MB / 1.153 GB, free: 2.348 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007182/1.075, allocations: 355.2 kB / 1.154 GB, free: 1.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001958/1.075, allocations: 20 kB / 1.154 GB, free: 1.961 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00126/1.076, allocations: 95.8 kB / 1.154 GB, free: 1.867 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/1.077, allocations: 60.38 kB / 1.154 GB, free: 1.809 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.233e-05/1.077, allocations: 20 kB / 1.154 GB, free: 1.789 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001863/1.078, allocations: 1.166 MB / 1.155 GB, free: 0.6211 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.9e-07/1.078, allocations: 0 / 1.155 GB, free: 0.6211 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.00137/1.08, allocations: 0.507 MB / 1.156 GB, free: 116 kB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (mixBox.filter.s[1],mixBox.filter.s[2],mixBox.filterOutMin.s[1],mixBox.filterOutMin.s[2]) * 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 (64): * Single equations (assignments): 64 * 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.003495/1.083, allocations: 2.956 MB / 1.159 GB, free: 13.07 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002429/1.086, allocations: 1.244 MB / 1.16 GB, free: 11.82 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/1.086, allocations: 3.938 kB / 1.16 GB, free: 11.82 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0007648/1.087, allocations: 439.4 kB / 1.16 GB, free: 11.39 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002954/1.09, allocations: 0.5522 MB / 1.161 GB, free: 10.85 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01706/1.107, allocations: 8.73 MB / 1.169 GB, free: 1.809 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007621/1.107, allocations: 1.176 MB / 1.17 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001743/1.109, allocations: 373 kB / 1.171 GB, free: 236 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009027/1.11, allocations: 0.4993 MB / 1.171 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of SimCode: time 7.41e-07/1.11, allocations: 0 / 1.171 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06222/1.172, allocations: 36.81 MB / 1.207 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002107/1.173, allocations: 233.8 kB / 1.207 GB, free: 11.19 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.652/3.824, allocations: 6.953 kB / 1.207 GB, free: 11.18 MB / 0.9669 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Dampers_Examples_MixingBoxMinimumFlow_fmu --startTime=0 --stopTime=240 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Dampers_Examples_MixingBoxMinimumFlow.fmu > Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow_res.mat does not exist to compare? outputFormat=mat