Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.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.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower") translateModel(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008951/0.0008947, allocations: 99.55 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.0009347/0.0009346, 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.217/1.217, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001625/0.001625, allocations: 270.6 kB / 291.2 MB, free: 1.922 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.7429/0.7429, allocations: 144.6 MB / 487 MB, free: 7.164 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003897/0.0003899, allocations: 14.7 kB / 0.5683 GB, free: 38.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1346, allocations: 83.08 MB / 0.6494 GB, free: 3.594 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower): time 0.001401/0.1361, allocations: 1.152 MB / 0.6505 GB, free: 2.434 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005497/0.1366, allocations: 356.4 kB / 0.6509 GB, free: 2.086 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.29e-05/0.1367, allocations: 0 / 0.6509 GB, free: 2.086 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.709e-05/0.1367, allocations: 0 / 0.6509 GB, free: 2.086 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.718e-05/0.1367, allocations: 13.59 kB / 0.6509 GB, free: 2.074 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002961/0.137, allocations: 63.84 kB / 0.651 GB, free: 2.012 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.795e-05/0.1371, allocations: 16.98 kB / 0.651 GB, free: 1.996 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.653e-05/0.1372, allocations: 3.984 kB / 0.651 GB, free: 1.992 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.353e-05/0.1372, allocations: 6.062 kB / 0.651 GB, free: 1.988 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.876e-05/0.1373, allocations: 15.92 kB / 0.651 GB, free: 1.973 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.124e-05/0.1373, allocations: 0 / 0.651 GB, free: 1.973 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003094/0.1376, allocations: 259.6 kB / 0.6512 GB, free: 1.719 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.649e-06/0.1376, allocations: 4 kB / 0.6513 GB, free: 1.715 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.085e-05/0.1376, allocations: 35.98 kB / 0.6513 GB, free: 1.676 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000113/0.1377, allocations: 75.86 kB / 0.6514 GB, free: 1.602 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.1378, allocations: 0 / 0.6514 GB, free: 1.602 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1378, allocations: 0 / 0.6514 GB, free: 1.602 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.196e-06/0.1378, allocations: 0 / 0.6514 GB, free: 1.602 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004084/0.1382, allocations: 356.6 kB / 0.6517 GB, free: 1.207 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.1382, allocations: 12.56 kB / 0.6517 GB, free: 1.195 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.556e-05/0.1383, allocations: 1.25 kB / 0.6517 GB, free: 1.195 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.858e-05/0.1384, allocations: 167 kB / 0.6519 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.1384, allocations: 7.953 kB / 0.6519 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.722e-06/0.1384, allocations: 0 / 0.6519 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001621/0.1386, allocations: 55.83 kB / 0.6519 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.1386, allocations: 0 / 0.6519 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.1386, allocations: 1.5 kB / 0.6519 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.1386, allocations: 7.938 kB / 0.6519 GB, free: 0.918 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001682/0.1388, allocations: 49.3 kB / 0.652 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002964/0.1391, allocations: 249.9 kB / 0.6522 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001305/0.1392, allocations: 52.73 kB / 0.6523 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006128/0.1399, allocations: 460.6 kB / 0.6527 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.1399, allocations: 31.72 kB / 0.6527 GB, free: 15.94 MB / 462.1 MB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.1399, allocations: 0 / 0.6527 GB, free: 15.94 MB / 462.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003724/0.1403, allocations: 106.3 kB / 0.6528 GB, free: 15.84 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/0.1403, allocations: 51.41 kB / 0.6529 GB, free: 15.77 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.944e-05/0.1404, allocations: 105.8 kB / 0.653 GB, free: 15.66 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.1404, allocations: 26.39 kB / 0.653 GB, free: 15.63 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.971e-05/0.1404, allocations: 85.02 kB / 0.6531 GB, free: 15.54 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.379e-05/0.1405, allocations: 7.906 kB / 0.6531 GB, free: 15.54 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.125e-06/0.1405, allocations: 0 / 0.6531 GB, free: 15.54 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.479e-05/0.1406, allocations: 315.6 kB / 0.6534 GB, free: 15.22 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.403e-05/0.1407, allocations: 26.39 kB / 0.6534 GB, free: 15.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.246e-05/0.1407, allocations: 16.61 kB / 0.6535 GB, free: 15.18 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.809e-05/0.1408, allocations: 29.34 kB / 0.6535 GB, free: 15.15 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1408, allocations: 0.9062 kB / 0.6535 GB, free: 15.15 MB / 462.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002078/0.141, allocations: 80.78 kB / 0.6536 GB, free: 15.07 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.1411, allocations: 8 kB / 0.6536 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1411, allocations: 4.234 kB / 0.6536 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.947e-06/0.1411, allocations: 0 / 0.6536 GB, free: 15.06 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.746e-05/0.1412, allocations: 17.92 kB / 0.6536 GB, free: 15.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.1412, allocations: 0 / 0.6536 GB, free: 15.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.778e-05/0.1412, allocations: 11.98 kB / 0.6536 GB, free: 15.03 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-06/0.1413, allocations: 0.5312 kB / 0.6536 GB, free: 15.03 MB / 462.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 6.353e-05/0.1413, allocations: 115.5 kB / 0.6537 GB, free: 14.91 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.648e-05/0.1414, allocations: 7.906 kB / 0.6537 GB, free: 14.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002221/0.1416, allocations: 90.41 kB / 0.6538 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.1416, allocations: 0 / 0.6538 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.1416, allocations: 0 / 0.6538 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.1416, allocations: 0 / 0.6538 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001384/0.1418, allocations: 161.7 kB / 0.654 GB, free: 14.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1418, allocations: 3.953 kB / 0.654 GB, free: 14.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.682e-05/0.1418, allocations: 11.98 kB / 0.654 GB, free: 14.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1418, allocations: 0 / 0.654 GB, free: 14.59 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-06/0.1419, allocations: 7.969 kB / 0.654 GB, free: 14.58 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1419, allocations: 0 / 0.654 GB, free: 14.58 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1419, allocations: 0 / 0.654 GB, free: 14.58 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000246/0.1421, allocations: 175.5 kB / 0.6541 GB, free: 14.39 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.927e-05/0.1422, allocations: 81.06 kB / 0.6542 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.051e-05/0.1422, allocations: 3.938 kB / 0.6542 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.23e-05/0.1423, allocations: 11.98 kB / 0.6542 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.78e-05/0.1423, allocations: 3.938 kB / 0.6542 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.1423, allocations: 4 kB / 0.6542 GB, free: 14.27 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.734e-05/0.1423, allocations: 83.28 kB / 0.6543 GB, free: 14.19 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1423, allocations: 0 / 0.6543 GB, free: 14.19 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002184/0.1426, allocations: 27.83 kB / 0.6544 GB, free: 14.16 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.0001344/0.1427, allocations: 107.3 kB / 0.6545 GB, free: 14.05 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001977/0.1429, allocations: 47.95 kB / 0.6545 GB, free: 14 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1429, allocations: 0 / 0.6545 GB, free: 14 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 8.262e-05/0.143, allocations: 28.05 kB / 0.6545 GB, free: 13.97 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001672/0.1432, allocations: 0 / 0.6545 GB, free: 13.97 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002286/0.1434, allocations: 116.6 kB / 0.6546 GB, free: 13.83 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002023/0.1436, allocations: 0.681 MB / 0.6553 GB, free: 13.12 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 2.152e-05/0.1437, allocations: 4 kB / 0.6553 GB, free: 13.12 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.639e-05/0.1437, allocations: 7.438 kB / 0.6553 GB, free: 13.11 MB / 462.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1437, allocations: 0 / 0.6553 GB, free: 13.11 MB / 462.1 MB Notification: Performance of Templates: time 0.002405/0.1461, allocations: 0.6259 MB / 0.6559 GB, free: 12.49 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) Environment - environmentSimulation: