Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Fluid_Actuators_Dampers_Examples_MixingBoxMinimumFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow,fileNamePrefix="Buildings_8_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.000906/0.000906, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.00444/0.00444, allocations: 171.6 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.251/1.251, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.677/1.677, allocations: 292.7 MB / 0.5502 GB, free: 14.43 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004897/0.0004897, allocations: 12.59 kB / 0.6744 GB, free: 25.74 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1745/0.175, allocations: 116.3 MB / 0.788 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow): time 0.527/0.7021, allocations: 193.9 MB / 0.9773 GB, free: 14.4 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01201/0.7141, allocations: 9.009 MB / 0.9861 GB, free: 13.02 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00135/0.7155, allocations: 41.88 kB / 0.9862 GB, free: 13 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001475/0.717, allocations: 0.5696 MB / 0.9867 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.003639/0.7206, allocations: 1.725 MB / 0.9884 GB, free: 11.47 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.006636/0.7273, allocations: 2.746 MB / 0.9911 GB, free: 9.91 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003458/0.7307, allocations: 3.585 MB / 0.9946 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00141/0.7322, allocations: 1.25 MB / 0.9958 GB, free: 7.293 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0013/0.7335, allocations: 1.059 MB / 0.9969 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001065/0.7346, allocations: 1.075 MB / 0.9979 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001682/0.7347, allocations: 78.19 kB / 0.998 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002439/0.7372, allocations: 1.627 MB / 0.9996 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000391/0.7376, allocations: 454.6 kB / 1 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0006417/0.7382, allocations: 0.7591 MB / 1.001 GB, free: 4.895 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002352/0.7406, allocations: 2.621 MB / 1.003 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.7406, allocations: 0 / 1.003 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.182e-06/0.7406, allocations: 0 / 1.003 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.394e-05/0.7406, allocations: 0 / 1.003 GB, free: 3.191 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 155 * Number of variables: 155 Notification: Performance of Generate backend data structure: time 0.004286/0.7449, allocations: 1.882 MB / 1.005 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.745, allocations: 10.84 kB / 1.005 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001305/0.7451, allocations: 112.2 kB / 1.005 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008314/0.7459, allocations: 228.6 kB / 1.005 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001902/0.7478, allocations: 1.335 MB / 1.007 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001718/0.748, allocations: 63.73 kB / 1.007 GB, free: 0.6641 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.7482, allocations: 91.19 kB / 1.007 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.7497, allocations: 0.9372 MB / 1.008 GB, free: 48 kB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.7497, allocations: 0 / 1.008 GB, free: 48 kB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.63e-05/0.7498, allocations: 27.91 kB / 1.008 GB, free: 28 kB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.7498, allocations: 13.81 kB / 1.008 GB, free: 28 kB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001576/0.7514, allocations: 0.8518 MB / 1.009 GB, free: 15.62 MB / 0.7481 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.004686/0.7561, allocations: 3.505 MB / 1.012 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.7574, allocations: 0.7756 MB / 1.013 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007451/0.7582, allocations: 458.3 kB / 1.013 GB, free: 12.27 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003419/0.7585, allocations: 288.7 kB / 1.014 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.7586, allocations: 45.47 kB / 1.014 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009245/0.7595, allocations: 240.3 kB / 1.014 GB, free: 11.81 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=52): time 2.074e-06/0.7595, allocations: 0 / 1.014 GB, free: 11.81 MB / 0.7481 GB Notification: Performance of matching and sorting (n=52): time 0.002629/0.7621, allocations: 1.35 MB / 1.015 GB, free: 11.14 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.359e-05/0.7622, allocations: 211.4 kB / 1.015 GB, free: 10.89 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002264/0.7645, allocations: 1.682 MB / 1.017 GB, free: 10 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 8.672e-05/0.7646, allocations: 41.64 kB / 1.017 GB, free: 9.961 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004407/0.7651, allocations: 0.5678 MB / 1.018 GB, free: 9.461 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/0.7652, allocations: 174.8 kB / 1.018 GB, free: 9.312 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.186e-05/0.7653, allocations: 52.59 kB / 1.018 GB, free: 9.273 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 9.072e-05/0.7654, allocations: 331.7 kB / 1.018 GB, free: 8.949 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007232/0.7661, allocations: 399.4 kB / 1.019 GB, free: 8.758 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009691/0.7671, allocations: 0.7053 MB / 1.019 GB, free: 8.195 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.7686, allocations: 0.8455 MB / 1.02 GB, free: 7.781 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.7686, allocations: 0 / 1.02 GB, free: 7.781 MB / 0.7481 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001912/0.7706, allocations: 1.072 MB / 1.021 GB, free: 7.242 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.584e-05/0.7706, allocations: 99.22 kB / 1.021 GB, free: 7.145 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.7706, allocations: 3.219 kB / 1.021 GB, free: 7.145 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.7707, allocations: 2.844 kB / 1.021 GB, free: 7.145 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008266/0.7715, allocations: 164.4 kB / 1.021 GB, free: 7.09 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.7715, allocations: 7 kB / 1.021 GB, free: 7.086 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/0.7731, allocations: 163.1 kB / 1.022 GB, free: 7.016 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.437e-05/0.7732, allocations: 36.02 kB / 1.022 GB, free: 7 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 5.881e-06/0.7732, allocations: 2.469 kB / 1.022 GB, free: 7 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001639/0.7748, allocations: 0.8979 MB / 1.022 GB, free: 6.574 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.7749, allocations: 2.781 kB / 1.022 GB, free: 6.574 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.737e-06/0.7749, allocations: 6.344 kB / 1.022 GB, free: 6.57 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007608/0.7756, allocations: 163.2 kB / 1.023 GB, free: 6.516 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.7756, allocations: 2.906 kB / 1.023 GB, free: 6.516 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/0.7772, allocations: 167.1 kB / 1.023 GB, free: 6.441 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.404e-05/0.7772, allocations: 30.78 kB / 1.023 GB, free: 6.43 MB / 0.7481 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 (61): * Single equations (assignments): 57 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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.0004878/0.7777, allocations: 386.2 kB / 1.023 GB, free: 6.125 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002029/0.7779, allocations: 133.2 kB / 1.023 GB, free: 6.055 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002095/0.78, allocations: 1.061 MB / 1.024 GB, free: 5.457 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.7801, allocations: 5.188 kB / 1.024 GB, free: 5.457 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.7801, allocations: 6.844 kB / 1.024 GB, free: 5.453 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.7801, allocations: 0 / 1.024 GB, free: 5.453 MB / 0.7481 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.003499/0.7836, allocations: 2.488 MB / 1.027 GB, free: 3.719 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.7836, allocations: 6.875 kB / 1.027 GB, free: 3.715 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006788/0.7843, allocations: 134.8 kB / 1.027 GB, free: 3.68 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.7843, allocations: 6.062 kB / 1.027 GB, free: 3.68 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.195e-05/0.7844, allocations: 23.73 kB / 1.027 GB, free: 3.664 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.7844, allocations: 9.297 kB / 1.027 GB, free: 3.66 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.7844, allocations: 2.625 kB / 1.027 GB, free: 3.66 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002437/0.7868, allocations: 1.566 MB / 1.028 GB, free: 2.762 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005189/0.7874, allocations: 355.3 kB / 1.029 GB, free: 2.453 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001792/0.7875, allocations: 23.86 kB / 1.029 GB, free: 2.438 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.7888, allocations: 93.23 kB / 1.029 GB, free: 2.395 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.7889, allocations: 63.05 kB / 1.029 GB, free: 2.355 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-05/0.789, allocations: 23.95 kB / 1.029 GB, free: 2.348 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.001696/0.7907, allocations: 1.208 MB / 1.03 GB, free: 1.695 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7907, allocations: 0 / 1.03 GB, free: 1.695 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001338/0.792, allocations: 0.5427 MB / 1.031 GB, free: 1.613 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (mixBox.filter.x[1],mixBox.filter.x[2],mixBox.filterOutMin.x[1],mixBox.filterOutMin.x[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 (63): * Single equations (assignments): 63 * 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.003213/0.7953, allocations: 2.278 MB / 1.033 GB, free: 15.36 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002575/0.7978, allocations: 1.46 MB / 1.034 GB, free: 13.87 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.7979, allocations: 0 / 1.034 GB, free: 13.87 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.000768/0.7986, allocations: 438.7 kB / 1.035 GB, free: 13.44 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003437/0.8021, allocations: 0.5995 MB / 1.035 GB, free: 12.85 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0204/0.8225, allocations: 12.41 MB / 1.048 GB, free: 48 kB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006663/0.8232, allocations: 1.161 MB / 1.049 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.001534/0.8247, allocations: 381.6 kB / 1.049 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008053/0.8256, allocations: 0.5305 MB / 1.05 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of SimCode: time 3.81e-07/0.8256, allocations: 4 kB / 1.05 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.524/3.35, allocations: 38.86 MB / 1.087 GB, free: 7.617 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003114/3.35, allocations: 256.1 kB / 1.088 GB, free: 7.359 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.767/6.117, allocations: 0 / 1.088 GB, free: 7.359 MB / 0.8106 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Dampers_Examples_MixingBoxMinimumFlow_fmu --startTime=0 --stopTime=240 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Dampers_Examples_MixingBoxMinimumFlow.fmu > Buildings_8_Buildings.Fluid.Actuators.Dampers.Examples.MixingBoxMinimumFlow.pipe 2>&1)