Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Airflow.Multizone.BaseClasses.Examples.PowerLaw.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.BaseClasses.Examples.PowerLaw,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Airflow.Multizone.BaseClasses.Examples.PowerLaw") translateModel(BuildingSystems.Airflow.Multizone.BaseClasses.Examples.PowerLaw,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Airflow.Multizone.BaseClasses.Examples.PowerLaw") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008383/0.0008382, allocations: 99.62 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.0008651/0.0008652, allocations: 177.3 kB / 15.94 MB, free: 228 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.182/1.182, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001673/0.001673, allocations: 266.1 kB / 291.2 MB, free: 2.008 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.761/0.761, allocations: 144.6 MB / 487 MB, free: 7.199 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004601/0.0004602, allocations: 17.06 kB / 0.5683 GB, free: 38.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1419, allocations: 83.08 MB / 0.6494 GB, free: 3.66 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Airflow.Multizone.BaseClasses.Examples.PowerLaw): time 0.00129/0.1433, allocations: 0.983 MB / 0.6504 GB, free: 2.664 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002278/0.1435, allocations: 102.7 kB / 0.6505 GB, free: 2.566 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.193e-05/0.1435, allocations: 0 / 0.6505 GB, free: 2.566 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.077e-05/0.1435, allocations: 4 kB / 0.6505 GB, free: 2.562 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 7.05e-05/0.1436, allocations: 3.984 kB / 0.6505 GB, free: 2.559 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001973/0.1438, allocations: 30.66 kB / 0.6505 GB, free: 2.531 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.158e-05/0.1439, allocations: 11.97 kB / 0.6505 GB, free: 2.52 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.928e-05/0.1439, allocations: 3.938 kB / 0.6505 GB, free: 2.516 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.068e-05/0.144, allocations: 4 kB / 0.6505 GB, free: 2.512 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.841e-05/0.144, allocations: 7.984 kB / 0.6506 GB, free: 2.504 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.022e-05/0.144, allocations: 0.5 kB / 0.6506 GB, free: 2.504 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.1442, allocations: 52.59 kB / 0.6506 GB, free: 2.453 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.994e-06/0.1442, allocations: 3.938 kB / 0.6506 GB, free: 2.449 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.3e-05/0.1442, allocations: 26.3 kB / 0.6506 GB, free: 2.418 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.274e-05/0.1443, allocations: 24.5 kB / 0.6507 GB, free: 2.395 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.1443, allocations: 0 / 0.6507 GB, free: 2.395 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1443, allocations: 0.625 kB / 0.6507 GB, free: 2.395 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.1443, allocations: 0 / 0.6507 GB, free: 2.395 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003775/0.1447, allocations: 328.6 kB / 0.651 GB, free: 2.027 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.1447, allocations: 9.75 kB / 0.651 GB, free: 2.02 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.059e-05/0.1448, allocations: 3.906 kB / 0.651 GB, free: 2.016 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.1449, allocations: 167.1 kB / 0.6511 GB, free: 1.812 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.1449, allocations: 3.953 kB / 0.6511 GB, free: 1.809 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.853e-06/0.1449, allocations: 0.75 kB / 0.6511 GB, free: 1.809 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.138e-05/0.145, allocations: 30.3 kB / 0.6512 GB, free: 1.773 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.145, allocations: 0 / 0.6512 GB, free: 1.773 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-06/0.145, allocations: 5.375 kB / 0.6512 GB, free: 1.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.145, allocations: 0 / 0.6512 GB, free: 1.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.925e-05/0.1451, allocations: 8 kB / 0.6512 GB, free: 1.762 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001504/0.1452, allocations: 150.4 kB / 0.6513 GB, free: 1.566 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.572e-05/0.1453, allocations: 23.33 kB / 0.6514 GB, free: 1.535 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006589/0.146, allocations: 0.6189 MB / 0.652 GB, free: 0.793 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.913e-05/0.146, allocations: 31.44 kB / 0.652 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.146, allocations: 3.938 kB / 0.652 GB, free: 0.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001318/0.1461, allocations: 46.22 kB / 0.652 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.251e-05/0.1462, allocations: 53.53 kB / 0.6521 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.276e-05/0.1463, allocations: 101.8 kB / 0.6522 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.288e-05/0.1463, allocations: 29.7 kB / 0.6522 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.396e-05/0.1464, allocations: 84.08 kB / 0.6523 GB, free: 416 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2e-05/0.1464, allocations: 4.406 kB / 0.6523 GB, free: 412 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-06/0.1464, allocations: 0.7812 kB / 0.6523 GB, free: 412 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.1465, allocations: 318.8 kB / 0.6526 GB, free: 84 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.127e-05/0.1465, allocations: 4.75 kB / 0.6526 GB, free: 80 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.412e-06/0.1466, allocations: 2 kB / 0.6526 GB, free: 80 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.588e-05/0.1466, allocations: 4 kB / 0.6526 GB, free: 76 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1466, allocations: 0 / 0.6526 GB, free: 76 kB / 446.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.403e-05/0.1466, allocations: 41.64 kB / 0.6527 GB, free: 28 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.1467, allocations: 9.672 kB / 0.6527 GB, free: 20 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.1467, allocations: 4 kB / 0.6527 GB, free: 16 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.1467, allocations: 3.984 kB / 0.6527 GB, free: 12 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.367e-05/0.1467, allocations: 0 / 0.6527 GB, free: 12 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.1468, allocations: 4 kB / 0.6527 GB, free: 8 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.681e-05/0.1468, allocations: 0.625 kB / 0.6527 GB, free: 8 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-06/0.1468, allocations: 1.281 kB / 0.6527 GB, free: 8 kB / 446.1 MB 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 (2): * Single equations (assignments): 2 * 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 8.272e-05/0.1469, allocations: 105.8 kB / 0.6528 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.045e-06/0.1469, allocations: 5.031 kB / 0.6528 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.747e-05/0.147, allocations: 52.7 kB / 0.6528 GB, free: 15.84 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.147, allocations: 0.6562 kB / 0.6528 GB, free: 15.84 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.147, allocations: 2.469 kB / 0.6528 GB, free: 15.84 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.147, allocations: 4 kB / 0.6528 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001264/0.1471, allocations: 161.6 kB / 0.653 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1471, allocations: 0 / 0.653 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.05e-05/0.1472, allocations: 4 kB / 0.653 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-06/0.1472, allocations: 0 / 0.653 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.119e-06/0.1472, allocations: 0 / 0.653 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.696e-06/0.1472, allocations: 6.016 kB / 0.653 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1472, allocations: 0 / 0.653 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.755e-05/0.1473, allocations: 65.12 kB / 0.6531 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.231e-05/0.1473, allocations: 77.77 kB / 0.6531 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.133e-05/0.1473, allocations: 0.7188 kB / 0.6531 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.556e-05/0.1474, allocations: 0 / 0.6531 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.662e-05/0.1474, allocations: 4.234 kB / 0.6531 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-06/0.1474, allocations: 11.94 kB / 0.6532 GB, free: 15.43 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.339e-05/0.1474, allocations: 83.27 kB / 0.6532 GB, free: 15.34 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1474, allocations: 3.938 kB / 0.6532 GB, free: 15.34 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0001884/0.1476, allocations: 19.94 kB / 0.6533 GB, free: 15.32 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * 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.0001429/0.1478, allocations: 119.2 kB / 0.6534 GB, free: 15.19 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 6.132e-05/0.1478, allocations: 4 kB / 0.6534 GB, free: 15.19 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1478, allocations: 0 / 0.6534 GB, free: 15.19 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 1.097e-05/0.1479, allocations: 8.062 kB / 0.6534 GB, free: 15.18 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001652/0.148, allocations: 8 kB / 0.6534 GB, free: 15.17 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00022/0.1483, allocations: 106.6 kB / 0.6535 GB, free: 15.04 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002162/0.1485, allocations: 0.6809 MB / 0.6542 GB, free: 14.34 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 2.495e-05/0.1485, allocations: 4.062 kB / 0.6542 GB, free: 14.33 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.324e-05/0.1485, allocations: 7.438 kB / 0.6542 GB, free: 14.32 MB / 462.1 MB Notification: Performance of SimCode: time 2e-07/0.1485, allocations: 4 kB / 0.6542 GB, free: 14.32 MB / 462.1 MB Notification: Performance of Templates: time 0.002365/0.1509, allocations: 0.5689 MB / 0.6547 GB, free: 13.75 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Airflow.Multizone.BaseClasses.Examples.PowerLaw.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Airflow.Multizone.BaseClasses.Examples.PowerLaw.pipe ; mkfifo BuildingSystems_BuildingSystems.Airflow.Multizone.BaseClasses.Examples.PowerLaw.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Airflow.Multizone.BaseClasses.Examples.PowerLaw.pipe >> ../files/BuildingSystems_BuildingSystems.Airflow.Multizone.BaseClasses.Examples.PowerLaw.sim & ./BuildingSystems_BuildingSystems.Airflow.Multizone.BaseClasses.Examples.PowerLaw -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Airflow.Multizone.BaseClasses.Examples.PowerLaw.pipe 2>&1) Environment - environmentSimulation: