Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ReverseBuoyancy3Zones",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ReverseBuoyancy3Zones",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.001073/0.001073, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.305/1.305, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002062/0.002063, allocations: 278.8 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9307/0.9307, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001718, allocations: 105.3 kB / 0.5953 GB, free: 27.76 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1281, allocations: 86.97 MB / 0.6803 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones): time 0.5246/0.6528, allocations: 295.1 MB / 0.9685 GB, free: 15.96 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.02255/0.6753, allocations: 17 MB / 0.9851 GB, free: 14.91 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003207/0.6786, allocations: 83.62 kB / 0.9851 GB, free: 14.83 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.004816/0.6835, allocations: 1.9 MB / 0.987 GB, free: 12.92 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.01601/0.6995, allocations: 6.441 MB / 0.9933 GB, free: 6.453 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.007343/0.7068, allocations: 2.913 MB / 0.9961 GB, free: 3.539 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.009486/0.7163, allocations: 7.701 MB / 1.004 GB, free: 11.82 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00401/0.7204, allocations: 2.601 MB / 1.006 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004738/0.7252, allocations: 2.756 MB / 1.009 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00414/0.7293, allocations: 2.703 MB / 1.012 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0008261/0.7302, allocations: 328 kB / 1.012 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01147/0.7416, allocations: 6.165 MB / 1.018 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.001923/0.7436, allocations: 1.344 MB / 1.019 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.00365/0.7473, allocations: 1.879 MB / 1.021 GB, free: 9.969 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.01272/0.76, allocations: 6.841 MB / 1.028 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.76, allocations: 3.938 kB / 1.028 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.733e-06/0.76, allocations: 0 / 1.028 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0001502/0.7602, allocations: 4 kB / 1.028 GB, free: 3.102 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: 669 * Number of variables: 669 Notification: Performance of Generate backend data structure: time 0.01125/0.7715, allocations: 4.132 MB / 1.032 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.7715, allocations: 8.031 kB / 1.032 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007405/0.7723, allocations: 375 kB / 1.032 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006402/0.7787, allocations: 0.9094 MB / 1.033 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003868/0.7826, allocations: 1.838 MB / 1.035 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001788/0.7828, allocations: 201.1 kB / 1.035 GB, free: 11.51 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006898/0.7835, allocations: 252 kB / 1.035 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006455/0.7899, allocations: 3.335 MB / 1.038 GB, free: 7.828 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.262e-05/0.79, allocations: 7.906 kB / 1.038 GB, free: 7.82 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003277/0.7904, allocations: 115.9 kB / 1.039 GB, free: 7.707 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001364/0.7905, allocations: 137 kB / 1.039 GB, free: 7.57 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005959/0.7965, allocations: 3.498 MB / 1.042 GB, free: 4.059 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.01469/0.8112, allocations: 12.22 MB / 1.054 GB, free: 6.934 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004478/0.8157, allocations: 3.52 MB / 1.058 GB, free: 3.336 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002629/0.8183, allocations: 1.818 MB / 1.059 GB, free: 1.516 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2391/1.057, allocations: 1.484 MB / 1.061 GB, free: 293 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.033e-05/1.058, allocations: 67.47 kB / 1.061 GB, free: 292.9 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=278): time 4.809e-06/1.058, allocations: 0 / 1.061 GB, free: 292.9 MB / 0.7637 GB Notification: Performance of matching and sorting (n=278): time 0.006806/1.064, allocations: 3.881 MB / 1.065 GB, free: 292.4 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/1.064, allocations: 83.53 kB / 1.065 GB, free: 292.3 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001776/1.066, allocations: 1.379 MB / 1.066 GB, free: 291.8 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001548/1.066, allocations: 80.48 kB / 1.066 GB, free: 291.7 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004542/1.067, allocations: 0.98 MB / 1.067 GB, free: 291.2 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005466/1.067, allocations: 0.9505 MB / 1.068 GB, free: 290.4 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005741/1.068, allocations: 403.9 kB / 1.068 GB, free: 290.2 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 3.203e-05/1.068, allocations: 305.1 kB / 1.069 GB, free: 289.9 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001563/1.07, allocations: 1.091 MB / 1.07 GB, free: 289.5 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001587/1.071, allocations: 1.365 MB / 1.071 GB, free: 288.9 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003291/1.074, allocations: 2.648 MB / 1.074 GB, free: 287.7 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/1.074, allocations: 2.344 kB / 1.074 GB, free: 287.7 MB / 0.7637 GB Notification: Performance of matching and sorting (n=311) (initialization): time 0.004266/1.079, allocations: 2.98 MB / 1.077 GB, free: 286.4 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/1.079, allocations: 5.625 kB / 1.077 GB, free: 286.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/1.079, allocations: 7.031 kB / 1.077 GB, free: 286.4 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.749e-05/1.079, allocations: 16.53 kB / 1.077 GB, free: 286.4 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002099/1.081, allocations: 0.5049 MB / 1.077 GB, free: 286.4 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.525e-05/1.081, allocations: 15.73 kB / 1.077 GB, free: 286.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/1.083, allocations: 189.8 kB / 1.077 GB, free: 286.3 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001468/1.083, allocations: 88.3 kB / 1.077 GB, free: 286.2 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (311): * Single equations (assignments): 311 * 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.0009786/1.084, allocations: 0.6475 MB / 1.078 GB, free: 285.9 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003647/1.084, allocations: 230 kB / 1.078 GB, free: 285.7 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004669/1.089, allocations: 3.105 MB / 1.081 GB, free: 284.4 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.353e-05/1.089, allocations: 32.31 kB / 1.081 GB, free: 284.4 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/1.089, allocations: 0 / 1.081 GB, free: 284.4 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004033/1.093, allocations: 2.656 MB / 1.084 GB, free: 283.3 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008457/1.102, allocations: 6.216 MB / 1.09 GB, free: 280.7 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/1.102, allocations: 2.75 kB / 1.09 GB, free: 280.7 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002504/1.104, allocations: 0.5443 MB / 1.09 GB, free: 280.7 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.381e-05/1.104, allocations: 10.41 kB / 1.09 GB, free: 280.7 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001408/1.104, allocations: 60.59 kB / 1.091 GB, free: 280.6 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.229e-05/1.104, allocations: 9.656 kB / 1.091 GB, free: 280.6 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/1.104, allocations: 0 / 1.091 GB, free: 280.6 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005658/1.11, allocations: 4.57 MB / 1.095 GB, free: 278.7 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008855/1.111, allocations: 0.6103 MB / 1.096 GB, free: 278.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003016/1.111, allocations: 47.91 kB / 1.096 GB, free: 278.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001573/1.113, allocations: 77.27 kB / 1.096 GB, free: 278.2 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002861/1.113, allocations: 170.3 kB / 1.096 GB, free: 278.2 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001377/1.113, allocations: 75.88 kB / 1.096 GB, free: 278.2 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001031/1.114, allocations: 0.947 MB / 1.097 GB, free: 277.8 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.7e-07/1.114, allocations: 1.594 kB / 1.097 GB, free: 277.8 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001654/1.116, allocations: 0.9761 MB / 1.098 GB, free: 277.7 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 18 (volEas.dynBal.medium.Xi[1],volEas.dynBal.U,volEas.dynBal.m,oriOutBot.mExc,oriOutTop.mExc,volOut.dynBal.medium.Xi[1],volOut.dynBal.U,volOut.dynBal.m,oriWesTop.mExc,dooOpeClo.mExcAB,dooOpeClo.mExcBA,oriEasTop.mExc,volTop.dynBal.medium.Xi[1],volTop.dynBal.U,volTop.dynBal.m,volWes.dynBal.medium.Xi[1],volWes.dynBal.U,volWes.dynBal.m) * 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 (278): * Single equations (assignments): 278 * 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.005834/1.122, allocations: 5.393 MB / 1.103 GB, free: 275 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.01002/1.132, allocations: 5.533 MB / 1.108 GB, free: 271.3 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.798e-06/1.132, allocations: 4 kB / 1.109 GB, free: 271.3 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001607/1.134, allocations: 1.507 MB / 1.11 GB, free: 269.8 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005144/1.139, allocations: 1.358 MB / 1.111 GB, free: 268.6 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02155/1.16, allocations: 21.3 MB / 1.132 GB, free: 246.3 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009562/1.161, allocations: 1.903 MB / 1.134 GB, free: 244.4 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.002569/1.164, allocations: 0.8346 MB / 1.135 GB, free: 243.6 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001173/1.165, allocations: 1.097 MB / 1.136 GB, free: 242.5 MB / 0.7637 GB Notification: Performance of SimCode: time 6.41e-07/1.165, allocations: 4 kB / 1.136 GB, free: 242.5 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07938/1.244, allocations: 67.71 MB / 1.202 GB, free: 175.6 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.995/10.24, allocations: 21.23 kB / 1.202 GB, free: 175.6 MB / 0.7637 GB (rm -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones.pipe ; mkfifo BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones.pipe >> ../files/BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ReverseBuoyancy3Zones.fmu > BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ReverseBuoyancy3Zones.pipe 2>&1)