Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.NaturalVentilation.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: translateModel(BuildingSystems.Airflow.Multizone.Examples.NaturalVentilation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.NaturalVentilation") translateModel(BuildingSystems.Airflow.Multizone.Examples.NaturalVentilation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.NaturalVentilation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008585/0.0008586, allocations: 100.3 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.0008681/0.0008681, allocations: 177.3 kB / 15.94 MB, free: 220 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.227/1.227, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001681/0.001681, allocations: 274.6 kB / 291.2 MB, free: 2.004 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7965/0.7965, allocations: 144.6 MB / 487 MB, free: 7.184 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003906/0.0003906, allocations: 16.97 kB / 0.5683 GB, free: 38.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.1457, allocations: 83.08 MB / 0.6494 GB, free: 3.605 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Airflow.Multizone.Examples.NaturalVentilation): time 0.4644/0.6102, allocations: 167.1 MB / 0.8126 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.008931/0.6192, allocations: 7.35 MB / 0.8197 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001214/0.6205, allocations: 28.12 kB / 0.8198 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001695/0.6222, allocations: 0.6398 MB / 0.8204 GB, free: 1.668 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006167/0.6283, allocations: 2.099 MB / 0.8224 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002752/0.6311, allocations: 0.9732 MB / 0.8234 GB, free: 1.621 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002499/0.6336, allocations: 1.684 MB / 0.825 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007965/0.6344, allocations: 0.6907 MB / 0.8257 GB, free: 1.527 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001237/0.6357, allocations: 0.8071 MB / 0.8265 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006516/0.6363, allocations: 0.6018 MB / 0.8271 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.013e-05/0.6364, allocations: 49.69 kB / 0.8271 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002069/0.6385, allocations: 0.9012 MB / 0.828 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002698/0.6388, allocations: 341.9 kB / 0.8283 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003302/0.6391, allocations: 266.2 kB / 0.8286 GB, free: 17.49 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001285/0.6404, allocations: 1.475 MB / 0.83 GB, free: 17.38 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.6404, allocations: 0 / 0.83 GB, free: 17.38 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.703e-06/0.6404, allocations: 0 / 0.83 GB, free: 17.38 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.128e-05/0.6404, allocations: 0 / 0.83 GB, free: 17.38 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002366/0.6428, allocations: 1.386 MB / 0.8314 GB, free: 16.59 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.193e-05/0.6429, allocations: 8.656 kB / 0.8314 GB, free: 16.59 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00214/0.645, allocations: 382.8 kB / 0.8318 GB, free: 16.53 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/0.6461, allocations: 0.7901 MB / 0.8325 GB, free: 16.22 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.894e-05/0.6462, allocations: 63.34 kB / 0.8326 GB, free: 16.22 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.6463, allocations: 85.84 kB / 0.8327 GB, free: 16.22 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.6476, allocations: 1.031 MB / 0.8337 GB, free: 16.08 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.342e-05/0.6477, allocations: 5.812 kB / 0.8337 GB, free: 16.08 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.421e-05/0.6477, allocations: 35.84 kB / 0.8337 GB, free: 16.08 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.497e-05/0.6478, allocations: 43.72 kB / 0.8338 GB, free: 16.08 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001182/0.649, allocations: 0.8801 MB / 0.8346 GB, free: 16.07 MB / 0.5762 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.003834/0.6528, allocations: 4.295 MB / 0.8388 GB, free: 13.32 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008865/0.6537, allocations: 0.6862 MB / 0.8395 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005469/0.6543, allocations: 0.6807 MB / 0.8402 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.6543, allocations: 40.44 kB / 0.8402 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=70): time 2.104e-06/0.6543, allocations: 0 / 0.8402 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of matching and sorting (n=70): time 0.001532/0.6559, allocations: 1.007 MB / 0.8412 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.6559, allocations: 60.59 kB / 0.8412 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005826/0.6565, allocations: 0.6279 MB / 0.8418 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.818e-05/0.6566, allocations: 41.7 kB / 0.8419 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002351/0.6568, allocations: 435.2 kB / 0.8423 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/0.657, allocations: 248.5 kB / 0.8425 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/0.657, allocations: 16.53 kB / 0.8426 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.6572, allocations: 395.8 kB / 0.8429 GB, free: 11.14 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003657/0.6576, allocations: 270.8 kB / 0.8432 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004232/0.658, allocations: 372.9 kB / 0.8435 GB, free: 10.97 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004194/0.6584, allocations: 328 kB / 0.8439 GB, free: 10.94 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.6584, allocations: 0 / 0.8439 GB, free: 10.94 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001023/0.6595, allocations: 0.7979 MB / 0.8446 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.6595, allocations: 5.719 kB / 0.8446 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.6595, allocations: 0 / 0.8446 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.6595, allocations: 4.969 kB / 0.8446 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000557/0.6601, allocations: 146 kB / 0.8448 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.6601, allocations: 5.75 kB / 0.8448 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008753/0.661, allocations: 118.7 kB / 0.8449 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.459e-05/0.661, allocations: 21.78 kB / 0.8449 GB, free: 10.71 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (82): * Single equations (assignments): 82 * 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.0003422/0.6614, allocations: 286.9 kB / 0.8452 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001188/0.6615, allocations: 88.53 kB / 0.8453 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001141/0.6627, allocations: 0.7907 MB / 0.8461 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.6627, allocations: 8.156 kB / 0.8461 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.6627, allocations: 7.953 kB / 0.8461 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008925/0.6636, allocations: 0.8219 MB / 0.8469 GB, free: 10.03 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.6647, allocations: 0.9772 MB / 0.8478 GB, free: 9.582 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.6647, allocations: 1.969 kB / 0.8478 GB, free: 9.582 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007136/0.6654, allocations: 165.1 kB / 0.848 GB, free: 9.559 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.6654, allocations: 2.656 kB / 0.848 GB, free: 9.559 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.532e-05/0.6655, allocations: 19.59 kB / 0.848 GB, free: 9.555 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.993e-06/0.6655, allocations: 6.359 kB / 0.848 GB, free: 9.551 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.6655, allocations: 3 kB / 0.848 GB, free: 9.551 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001437/0.6669, allocations: 1.191 MB / 0.8492 GB, free: 9.25 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004201/0.6673, allocations: 245.5 kB / 0.8494 GB, free: 9.082 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001221/0.6675, allocations: 18.66 kB / 0.8494 GB, free: 9.078 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007398/0.6682, allocations: 78.92 kB / 0.8495 GB, free: 9.047 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.087e-05/0.6683, allocations: 41.97 kB / 0.8496 GB, free: 9.031 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.363e-05/0.6684, allocations: 27.8 kB / 0.8496 GB, free: 9.027 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004504/0.6688, allocations: 446.6 kB / 0.85 GB, free: 8.871 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.3e-07/0.6688, allocations: 0 / 0.85 GB, free: 8.871 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007646/0.6696, allocations: 347.1 kB / 0.8503 GB, free: 8.816 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (volA.dynBal.medium.Xi[1],volA.dynBal.U,volA.dynBal.m,oriOutBot.mExc,oriOutTop.mExc,volOut.dynBal.medium.Xi[1],volOut.dynBal.U,volOut.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 (70): * Single equations (assignments): 70 * 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.0003034/0.6699, allocations: 192.7 kB / 0.8505 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009388/0.6709, allocations: 0.6778 MB / 0.8512 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.6709, allocations: 0 / 0.8512 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004404/0.6713, allocations: 372.2 kB / 0.8515 GB, free: 8.578 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002119/0.6735, allocations: 0.5172 MB / 0.852 GB, free: 8.402 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003421/0.6769, allocations: 2.654 MB / 0.8546 GB, free: 6.758 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006806/0.6776, allocations: 1.106 MB / 0.8557 GB, free: 5.891 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0008993/0.6785, allocations: 236.7 kB / 0.8559 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002229/0.6787, allocations: 67.94 kB / 0.856 GB, free: 5.77 MB / 0.5762 GB Notification: Performance of SimCode: time 5.41e-07/0.6787, allocations: 0 / 0.856 GB, free: 5.77 MB / 0.5762 GB Notification: Performance of Templates: time 0.0292/0.7079, allocations: 16.82 MB / 0.8724 GB, free: 10.27 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.NaturalVentilation.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.NaturalVentilation.pipe ; mkfifo BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.NaturalVentilation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.NaturalVentilation.pipe >> ../files/BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.NaturalVentilation.sim & ./BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.NaturalVentilation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.NaturalVentilation.pipe 2>&1) Environment - environmentSimulation: