Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.MixingBox,fileNamePrefix="Buildings_10_Buildings_Fluid_Actuators_Dampers_Examples_MixingBox",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Dampers.Examples.MixingBox,fileNamePrefix="Buildings_10_Buildings_Fluid_Actuators_Dampers_Examples_MixingBox",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.004789/0.004789, allocations: 100.5 kB / 15.73 MB, free: 6.055 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.001161/0.001161, allocations: 195.4 kB / 16.67 MB, free: 5.953 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.403/2.403, allocations: 437 MB / 0.7105 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 55.91 kB / 1.018 GB, free: 9.895 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7423/0.7436, allocations: 151.6 MB / 1.166 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Dampers.Examples.MixingBox): time 0.1889/0.9325, allocations: 189.7 MB / 1.351 GB, free: 5.383 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.00754/0.9401, allocations: 4.285 MB / 1.356 GB, free: 1.086 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001174/0.9413, allocations: 27.81 kB / 1.356 GB, free: 1.059 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.001478/0.9428, allocations: 0.5162 MB / 1.356 GB, free: 0.5391 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.004075/0.9469, allocations: 1.621 MB / 1.358 GB, free: 14.91 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.003482/0.9504, allocations: 1.356 MB / 1.359 GB, free: 13.56 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.003029/0.9535, allocations: 2.273 MB / 1.361 GB, free: 11.29 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001644/0.9551, allocations: 1.089 MB / 1.362 GB, free: 10.19 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00174/0.9569, allocations: 0.9615 MB / 1.363 GB, free: 9.223 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001394/0.9583, allocations: 0.8756 MB / 1.364 GB, free: 8.344 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.0003967/0.9587, allocations: 144 kB / 1.364 GB, free: 8.203 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002471/0.9612, allocations: 1.247 MB / 1.365 GB, free: 6.953 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.000577/0.9618, allocations: 422.7 kB / 1.366 GB, free: 6.539 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.00102/0.9628, allocations: 0.6415 MB / 1.366 GB, free: 5.895 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.003065/0.9659, allocations: 1.989 MB / 1.368 GB, free: 3.898 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.9659, allocations: 0 / 1.368 GB, free: 3.898 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.553e-06/0.9659, allocations: 0 / 1.368 GB, free: 3.898 MB / 1.092 GB Notification: Performance of Transformations before backend: time 4.786e-05/0.966, allocations: 0 / 1.368 GB, free: 3.898 MB / 1.092 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.004873/0.9708, allocations: 1.758 MB / 1.37 GB, free: 2.082 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.9709, allocations: 12.92 kB / 1.37 GB, free: 2.07 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001364/0.971, allocations: 90.52 kB / 1.37 GB, free: 1.973 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009177/0.972, allocations: 191.1 kB / 1.37 GB, free: 1.785 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002141/0.9741, allocations: 1.081 MB / 1.371 GB, free: 0.6484 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.154e-05/0.9742, allocations: 44.94 kB / 1.372 GB, free: 0.6055 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/0.9743, allocations: 56 kB / 1.372 GB, free: 0.5508 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.9755, allocations: 0.6115 MB / 1.372 GB, free: 15.93 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.9756, allocations: 0 / 1.372 GB, free: 15.93 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.732e-05/0.9756, allocations: 20 kB / 1.372 GB, free: 15.91 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.844e-05/0.9757, allocations: 20.94 kB / 1.372 GB, free: 15.89 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.977, allocations: 0.6207 MB / 1.373 GB, free: 15.27 MB / 1.107 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.004689/0.9817, allocations: 2.67 MB / 1.375 GB, free: 12.46 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/0.9829, allocations: 0.5528 MB / 1.376 GB, free: 11.9 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000632/0.9835, allocations: 348.6 kB / 1.376 GB, free: 11.56 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004381/0.984, allocations: 295.3 kB / 1.377 GB, free: 11.21 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.984, allocations: 38.5 kB / 1.377 GB, free: 11.17 MB / 1.107 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007064/0.9847, allocations: 139.6 kB / 1.377 GB, free: 11.03 MB / 1.107 GB Notification: Performance of pre-optimization done (n=43): time 4.658e-06/0.9848, allocations: 0 / 1.377 GB, free: 11.03 MB / 1.107 GB Notification: Performance of matching and sorting (n=43): time 0.002452/0.9872, allocations: 1.017 MB / 1.378 GB, free: 10.01 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.9873, allocations: 55.41 kB / 1.378 GB, free: 9.941 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002083/0.9894, allocations: 1.275 MB / 1.379 GB, free: 8.648 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 6.983e-05/0.9894, allocations: 37.7 kB / 1.379 GB, free: 8.605 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003472/0.9898, allocations: 442 kB / 1.379 GB, free: 8.172 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001414/0.9899, allocations: 158.6 kB / 1.38 GB, free: 8.016 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002203/0.9902, allocations: 114 kB / 1.38 GB, free: 7.898 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.9903, allocations: 326 kB / 1.38 GB, free: 7.574 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005874/0.9909, allocations: 274.2 kB / 1.38 GB, free: 7.305 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007871/0.9917, allocations: 485 kB / 1.381 GB, free: 6.754 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/0.9929, allocations: 0.5872 MB / 1.381 GB, free: 6.164 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.828e-06/0.9929, allocations: 0 / 1.381 GB, free: 6.164 MB / 1.107 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001623/0.9945, allocations: 0.7575 MB / 1.382 GB, free: 5.398 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.9946, allocations: 4 kB / 1.382 GB, free: 5.395 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.9946, allocations: 0 / 1.382 GB, free: 5.395 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.9946, allocations: 4 kB / 1.382 GB, free: 5.391 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006515/0.9953, allocations: 123.8 kB / 1.382 GB, free: 5.27 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.9953, allocations: 4 kB / 1.382 GB, free: 5.266 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001172/0.9965, allocations: 91.86 kB / 1.382 GB, free: 5.176 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.625e-05/0.9965, allocations: 23.97 kB / 1.382 GB, free: 5.152 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008381/0.9974, allocations: 471.9 kB / 1.383 GB, free: 4.688 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007345/0.9981, allocations: 481.9 kB / 1.383 GB, free: 4.137 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001119/0.9993, allocations: 0.5863 MB / 1.384 GB, free: 3.547 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.673e-06/0.9993, allocations: 0 / 1.384 GB, free: 3.547 MB / 1.107 GB Notification: Performance of matching and sorting (n=45) (initialization_lambda0): time 0.001564/1.001, allocations: 0.7466 MB / 1.385 GB, free: 2.793 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/1.001, allocations: 8 kB / 1.385 GB, free: 2.785 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.745e-06/1.001, allocations: 0 / 1.385 GB, free: 2.785 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.769e-06/1.001, allocations: 0 / 1.385 GB, free: 2.785 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006334/1.002, allocations: 119.8 kB / 1.385 GB, free: 2.668 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/1.002, allocations: 7.938 kB / 1.385 GB, free: 2.66 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/1.003, allocations: 128.2 kB / 1.385 GB, free: 2.535 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.044e-05/1.003, allocations: 23.98 kB / 1.385 GB, free: 2.512 MB / 1.107 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 (45): * Single equations (assignments): 45 * 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.0001953/1.003, allocations: 204.1 kB / 1.385 GB, free: 2.305 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002447/1.003, allocations: 111.3 kB / 1.385 GB, free: 2.195 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001733/1.005, allocations: 0.8071 MB / 1.386 GB, free: 1.383 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/1.005, allocations: 4 kB / 1.386 GB, free: 1.379 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/1.005, allocations: 0 / 1.386 GB, free: 1.379 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/1.005, allocations: 3.984 kB / 1.386 GB, free: 1.375 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003271/1.008, allocations: 1.961 MB / 1.388 GB, free: 15.33 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/1.008, allocations: 7.984 kB / 1.388 GB, free: 15.32 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00057/1.009, allocations: 103.8 kB / 1.388 GB, free: 15.22 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.536e-06/1.009, allocations: 12.28 kB / 1.388 GB, free: 15.21 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.605e-05/1.009, allocations: 15.92 kB / 1.388 GB, free: 15.19 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.202e-06/1.009, allocations: 7.938 kB / 1.388 GB, free: 15.18 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/1.009, allocations: 4 kB / 1.388 GB, free: 15.18 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002139/1.011, allocations: 1.233 MB / 1.389 GB, free: 13.9 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005303/1.012, allocations: 292.2 kB / 1.389 GB, free: 13.6 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001799/1.012, allocations: 15.94 kB / 1.389 GB, free: 13.58 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/1.013, allocations: 71.97 kB / 1.39 GB, free: 13.51 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/1.013, allocations: 43.84 kB / 1.39 GB, free: 13.47 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.762e-05/1.013, allocations: 19.98 kB / 1.39 GB, free: 13.45 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.001527/1.015, allocations: 0.9247 MB / 1.391 GB, free: 12.52 MB / 1.123 GB Notification: Performance of sort global known variables: time 3.11e-07/1.015, allocations: 0 / 1.391 GB, free: 12.52 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.001196/1.016, allocations: 407.4 kB / 1.391 GB, free: 12.12 MB / 1.123 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (mixBox.filter.s[1],mixBox.filter.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 (52): * Single equations (assignments): 52 * 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.002768/1.019, allocations: 1.908 MB / 1.393 GB, free: 10.17 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.002041/1.021, allocations: 0.9508 MB / 1.394 GB, free: 9.219 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/1.021, allocations: 0 / 1.394 GB, free: 9.219 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.0006711/1.021, allocations: 332.2 kB / 1.394 GB, free: 8.895 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002168/1.024, allocations: 429.8 kB / 1.394 GB, free: 8.48 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0137/1.037, allocations: 8.512 MB / 1.403 GB, free: 15.78 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006011/1.038, allocations: 1.037 MB / 1.404 GB, free: 14.71 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.001079/1.039, allocations: 291 kB / 1.404 GB, free: 14.42 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006705/1.04, allocations: 391.3 kB / 1.404 GB, free: 14.04 MB / 1.139 GB Notification: Performance of SimCode: time 1.082e-06/1.04, allocations: 0 / 1.404 GB, free: 14.04 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0605/1.1, allocations: 30.18 MB / 1.434 GB, free: 200 kB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.434/10.53, allocations: 4.578 kB / 1.434 GB, free: 196 kB / 1.154 GB (rm -f Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox_res.csv --start-time 0 --stop-time 240 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.096 Buildings_10_Buildings_Fluid_Actuators_Dampers_Examples_MixingBox.fmu > Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Dampers_Examples_MixingBox.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Dampers.Examples.MixingBox.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches