Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow.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.ZonalFlow,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ZonalFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Airflow.Multizone.Examples.ZonalFlow,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_ZonalFlow",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.006903/0.006903, allocations: 101.8 kB / 15.73 MB, free: 5.555 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.001453/0.001453, allocations: 194.6 kB / 16.67 MB, free: 5.484 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002111/0.002111, allocations: 290.6 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.941/0.941, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 100.1 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1688/0.1708, allocations: 86.97 MB / 0.7659 GB, free: 8.906 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Airflow.Multizone.Examples.ZonalFlow): time 0.5884/0.7593, allocations: 204.2 MB / 0.9653 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01047/0.7698, allocations: 6.376 MB / 0.9715 GB, free: 416 kB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001507/0.7713, allocations: 35.81 kB / 0.9715 GB, free: 380 kB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.002175/0.7735, allocations: 0.7617 MB / 0.9723 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.007664/0.7812, allocations: 2.759 MB / 0.975 GB, free: 12.84 MB / 0.7325 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Airflow/Multizone/ZonalFlow_ACS.mo:29:3-37:11:writable] Warning: initial() may only be used as a when condition (when initial() or when {..., initial(), ...}), but got condition 'zonFlo.useDefaultProperties and initial()'. Notification: Performance of NFTyping.typeClassSections: time 0.002513/0.7838, allocations: 0.7218 MB / 0.9757 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.004113/0.7879, allocations: 3.274 MB / 0.9789 GB, free: 8.832 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001669/0.7896, allocations: 1.143 MB / 0.98 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002462/0.7921, allocations: 1.288 MB / 0.9812 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002283/0.7944, allocations: 1.096 MB / 0.9823 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0003736/0.7948, allocations: 128 kB / 0.9824 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004556/0.7993, allocations: 2.362 MB / 0.9847 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0007478/0.8001, allocations: 0.522 MB / 0.9852 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.001481/0.8016, allocations: 0.7353 MB / 0.986 GB, free: 1.535 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.005576/0.8072, allocations: 2.804 MB / 0.9887 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.8072, allocations: 0 / 0.9887 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.785e-06/0.8072, allocations: 0 / 0.9887 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 7.43e-05/0.8073, allocations: 3.938 kB / 0.9887 GB, free: 14.72 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.005047/0.8123, allocations: 1.802 MB / 0.9905 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.8124, allocations: 16.03 kB / 0.9905 GB, free: 12.84 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003468/0.8127, allocations: 168.5 kB / 0.9906 GB, free: 12.67 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002426/0.8152, allocations: 350.9 kB / 0.991 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001789/0.817, allocations: 0.8863 MB / 0.9918 GB, free: 11.4 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.174e-05/0.8171, allocations: 81.95 kB / 0.9919 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000217/0.8173, allocations: 103.9 kB / 0.992 GB, free: 11.21 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002243/0.8195, allocations: 1.187 MB / 0.9932 GB, free: 9.996 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.931e-05/0.8196, allocations: 0 / 0.9932 GB, free: 9.996 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000116/0.8197, allocations: 43.98 kB / 0.9932 GB, free: 9.953 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.262e-05/0.8198, allocations: 62.06 kB / 0.9933 GB, free: 9.891 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002034/0.8218, allocations: 1.249 MB / 0.9945 GB, free: 8.637 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.006967/0.8288, allocations: 5.115 MB / 0.9995 GB, free: 3.062 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.8303, allocations: 1.156 MB / 1.001 GB, free: 1.832 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007348/0.831, allocations: 0.5095 MB / 1.001 GB, free: 1.32 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 5.96e-05/0.8311, allocations: 16.8 kB / 1.001 GB, free: 1.305 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007424/0.8318, allocations: 488.2 kB / 1.002 GB, free: 0.8164 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=76): time 3.857e-06/0.8319, allocations: 0 / 1.002 GB, free: 0.8164 MB / 0.7481 GB Notification: Performance of matching and sorting (n=76): time 0.001984/0.8339, allocations: 1.165 MB / 1.003 GB, free: 15.64 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.8339, allocations: 60.06 kB / 1.003 GB, free: 15.57 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007434/0.8347, allocations: 0.5745 MB / 1.003 GB, free: 14.99 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 7.683e-05/0.8347, allocations: 41.7 kB / 1.003 GB, free: 14.94 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.00031/0.8351, allocations: 472.6 kB / 1.004 GB, free: 14.47 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002685/0.8353, allocations: 273.6 kB / 1.004 GB, free: 14.2 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002229/0.8356, allocations: 130.6 kB / 1.004 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001676/0.8357, allocations: 390.8 kB / 1.005 GB, free: 13.68 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004999/0.8363, allocations: 329.8 kB / 1.005 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005807/0.8368, allocations: 444.8 kB / 1.005 GB, free: 12.89 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.838, allocations: 0.8311 MB / 1.006 GB, free: 12.02 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.838, allocations: 0 / 1.006 GB, free: 12.02 MB / 0.7637 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001476/0.8395, allocations: 0.9304 MB / 1.007 GB, free: 11.08 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.8395, allocations: 6.031 kB / 1.007 GB, free: 11.07 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.8395, allocations: 4 kB / 1.007 GB, free: 11.07 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.8396, allocations: 11.94 kB / 1.007 GB, free: 11.06 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006651/0.8402, allocations: 147.8 kB / 1.007 GB, free: 10.91 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.819e-05/0.8403, allocations: 15.92 kB / 1.007 GB, free: 10.9 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007729/0.841, allocations: 59.52 kB / 1.007 GB, free: 10.84 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-05/0.8411, allocations: 28 kB / 1.007 GB, free: 10.81 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 91 * 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.0004564/0.8416, allocations: 337.9 kB / 1.008 GB, free: 10.47 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/0.8418, allocations: 87.47 kB / 1.008 GB, free: 10.39 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/0.842, allocations: 111.6 kB / 1.008 GB, free: 10.27 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.842, allocations: 8 kB / 1.008 GB, free: 10.27 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.842, allocations: 0 / 1.008 GB, free: 10.27 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001261/0.8433, allocations: 1.093 MB / 1.009 GB, free: 9.09 MB / 0.7637 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.00331/0.8466, allocations: 2.315 MB / 1.011 GB, free: 6.688 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.8466, allocations: 4 kB / 1.011 GB, free: 6.684 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008314/0.8474, allocations: 179.8 kB / 1.011 GB, free: 6.508 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.798e-06/0.8475, allocations: 0 / 1.011 GB, free: 6.508 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-05/0.8475, allocations: 19.98 kB / 1.011 GB, free: 6.488 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.827e-06/0.8475, allocations: 5.875 kB / 1.011 GB, free: 6.484 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.8475, allocations: 3.938 kB / 1.011 GB, free: 6.48 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001838/0.8494, allocations: 1.356 MB / 1.013 GB, free: 5.102 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004797/0.8499, allocations: 256.4 kB / 1.013 GB, free: 4.832 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001483/0.85, allocations: 19.98 kB / 1.013 GB, free: 4.812 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006858/0.8507, allocations: 18.62 kB / 1.013 GB, free: 4.797 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.573e-05/0.8508, allocations: 44.59 kB / 1.013 GB, free: 4.754 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.542e-05/0.8509, allocations: 27.98 kB / 1.013 GB, free: 4.727 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004948/0.8514, allocations: 411.1 kB / 1.013 GB, free: 4.328 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8514, allocations: 0 / 1.013 GB, free: 4.328 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0009563/0.8524, allocations: 371.3 kB / 1.014 GB, free: 3.965 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (rooA.dynBal.medium.Xi[1],rooA.dynBal.U,rooA.dynBal.m,rooB.dynBal.medium.Xi[1],rooB.dynBal.U,rooB.dynBal.m) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 76 * 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.002185/0.8546, allocations: 1.985 MB / 1.016 GB, free: 1.953 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001176/0.8557, allocations: 0.7986 MB / 1.017 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/0.8558, allocations: 8.125 kB / 1.017 GB, free: 1.148 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.000531/0.8563, allocations: 423.5 kB / 1.017 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002626/0.8589, allocations: 0.5899 MB / 1.018 GB, free: 164 kB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01133/0.8703, allocations: 7.295 MB / 1.025 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008763/0.8712, allocations: 1.136 MB / 1.026 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0009308/0.8721, allocations: 275.1 kB / 1.026 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005556/0.8727, allocations: 375.3 kB / 1.026 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of SimCode: time 2.324e-06/0.8727, allocations: 0 / 1.026 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05295/0.9257, allocations: 25.92 MB / 1.052 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.72/9.646, allocations: 12.58 kB / 1.052 GB, free: 13.32 MB / 0.8106 GB (rm -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow.pipe ; mkfifo BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow.pipe >> ../files/BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow_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_ZonalFlow.fmu > BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.ZonalFlow.pipe 2>&1)