Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.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.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.RegStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 100.1 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.001001/0.001001, allocations: 177.3 kB / 15.95 MB, free: 216 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.218/1.218, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001695/0.001695, allocations: 270.8 kB / 291.3 MB, free: 1.902 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.7695/0.7695, allocations: 144.6 MB / 487 MB, free: 7.148 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003943/0.0003943, allocations: 19.22 kB / 0.5683 GB, free: 38.79 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1353, allocations: 83.08 MB / 0.6494 GB, free: 3.672 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.000585/0.1359, allocations: 301.2 kB / 0.6497 GB, free: 3.379 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002269/0.1362, allocations: 54.19 kB / 0.6498 GB, free: 3.328 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.181e-05/0.1362, allocations: 0 / 0.6498 GB, free: 3.328 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.089e-05/0.1362, allocations: 0 / 0.6498 GB, free: 3.328 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.047e-06/0.1362, allocations: 0 / 0.6498 GB, free: 3.328 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000213/0.1365, allocations: 11.98 kB / 0.6498 GB, free: 3.316 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 3.712e-05/0.1365, allocations: 3.219 kB / 0.6498 GB, free: 3.316 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.857e-05/0.1366, allocations: 0 / 0.6498 GB, free: 3.316 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.841e-05/0.1366, allocations: 3.984 kB / 0.6498 GB, free: 3.312 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.235e-05/0.1366, allocations: 3.984 kB / 0.6498 GB, free: 3.309 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.1366, allocations: 4 kB / 0.6498 GB, free: 3.305 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.622e-05/0.1368, allocations: 15.98 kB / 0.6498 GB, free: 3.289 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.044e-06/0.1368, allocations: 0 / 0.6498 GB, free: 3.289 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.918e-05/0.1368, allocations: 25.7 kB / 0.6498 GB, free: 3.258 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.257e-05/0.1369, allocations: 7.984 kB / 0.6499 GB, free: 3.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.1369, allocations: 1.094 kB / 0.6499 GB, free: 3.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1369, allocations: 0 / 0.6499 GB, free: 3.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.1369, allocations: 4 kB / 0.6499 GB, free: 3.246 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003097/0.1372, allocations: 321.7 kB / 0.6502 GB, free: 2.887 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.1373, allocations: 12.08 kB / 0.6502 GB, free: 2.875 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002664/0.1376, allocations: 25 kB / 0.6502 GB, free: 2.852 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.964e-05/0.1377, allocations: 161.4 kB / 0.6504 GB, free: 2.656 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.1377, allocations: 3.953 kB / 0.6504 GB, free: 2.652 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.277e-06/0.1377, allocations: 0 / 0.6504 GB, free: 2.652 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001517/0.1378, allocations: 33.69 kB / 0.6504 GB, free: 2.613 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.1379, allocations: 0.5 kB / 0.6504 GB, free: 2.613 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.1379, allocations: 0 / 0.6504 GB, free: 2.613 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.1379, allocations: 0.75 kB / 0.6504 GB, free: 2.613 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.42e-05/0.138, allocations: 12.58 kB / 0.6504 GB, free: 2.602 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001533/0.1381, allocations: 151.2 kB / 0.6506 GB, free: 2.406 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.062e-05/0.1382, allocations: 26.53 kB / 0.6506 GB, free: 2.371 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.1383, allocations: 4.703 kB / 0.6506 GB, free: 2.367 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.1383, allocations: 31.28 kB / 0.6506 GB, free: 2.328 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1383, allocations: 0.9062 kB / 0.6506 GB, free: 2.328 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002553/0.1386, allocations: 46.36 kB / 0.6507 GB, free: 2.277 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.1386, allocations: 52.88 kB / 0.6507 GB, free: 2.215 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.147e-05/0.1387, allocations: 97.8 kB / 0.6508 GB, free: 2.109 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.1387, allocations: 25.7 kB / 0.6508 GB, free: 2.078 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.442e-05/0.1387, allocations: 84.77 kB / 0.6509 GB, free: 1.992 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.886e-05/0.1388, allocations: 4.75 kB / 0.6509 GB, free: 1.988 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.986e-06/0.1388, allocations: 0 / 0.6509 GB, free: 1.988 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1389, allocations: 311.7 kB / 0.6512 GB, free: 1.676 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.603e-05/0.139, allocations: 8.516 kB / 0.6512 GB, free: 1.668 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.385e-05/0.139, allocations: 0.7188 kB / 0.6512 GB, free: 1.668 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.663e-05/0.1391, allocations: 9.922 kB / 0.6512 GB, free: 1.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1391, allocations: 0 / 0.6512 GB, free: 1.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001115/0.1392, allocations: 41.69 kB / 0.6513 GB, free: 1.613 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.1392, allocations: 8.578 kB / 0.6513 GB, free: 1.605 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1392, allocations: 0 / 0.6513 GB, free: 1.605 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.1393, allocations: 0.6562 kB / 0.6513 GB, free: 1.605 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.532e-05/0.1393, allocations: 8.859 kB / 0.6513 GB, free: 1.598 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1393, allocations: 0 / 0.6513 GB, free: 1.598 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.185e-05/0.1394, allocations: 0.8438 kB / 0.6513 GB, free: 1.598 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.1394, allocations: 4 kB / 0.6513 GB, free: 1.594 MB / 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 (1): * Single equations (assignments): 1 * 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 7.285e-05/0.1395, allocations: 114.4 kB / 0.6514 GB, free: 1.473 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-06/0.1395, allocations: 1.875 kB / 0.6514 GB, free: 1.473 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.104e-05/0.1395, allocations: 11.02 kB / 0.6514 GB, free: 1.465 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.1395, allocations: 3.984 kB / 0.6514 GB, free: 1.461 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1395, allocations: 0 / 0.6514 GB, free: 1.461 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.1396, allocations: 8.5 kB / 0.6514 GB, free: 1.453 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.1397, allocations: 147.8 kB / 0.6516 GB, free: 1.262 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1397, allocations: 0 / 0.6516 GB, free: 1.262 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.066e-05/0.1397, allocations: 7.984 kB / 0.6516 GB, free: 1.254 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1397, allocations: 0 / 0.6516 GB, free: 1.254 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.1397, allocations: 0 / 0.6516 GB, free: 1.254 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.1397, allocations: 3.953 kB / 0.6516 GB, free: 1.25 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1398, allocations: 0.6562 kB / 0.6516 GB, free: 1.25 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001437/0.1399, allocations: 69.22 kB / 0.6516 GB, free: 1.168 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.612e-05/0.1399, allocations: 77.11 kB / 0.6517 GB, free: 1.074 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.56e-05/0.14, allocations: 3.984 kB / 0.6517 GB, free: 1.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.858e-05/0.14, allocations: 0 / 0.6517 GB, free: 1.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.662e-05/0.14, allocations: 7.891 kB / 0.6517 GB, free: 1.062 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.14, allocations: 4 kB / 0.6517 GB, free: 1.059 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.091e-05/0.1401, allocations: 75.84 kB / 0.6518 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1401, allocations: 0 / 0.6518 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0001678/0.1403, allocations: 0.6562 kB / 0.6518 GB, free: 0.9844 MB / 446.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 (1): * Single equations (assignments): 1 * 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.0001381/0.1404, allocations: 98.48 kB / 0.6519 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001285/0.1405, allocations: 17.92 kB / 0.6519 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1405, allocations: 0 / 0.6519 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.129e-05/0.1406, allocations: 8.297 kB / 0.6519 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.183e-05/0.1407, allocations: 9.469 kB / 0.6519 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002171/0.1409, allocations: 78.75 kB / 0.652 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002139/0.1411, allocations: 0.677 MB / 0.6527 GB, free: 40 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.204e-05/0.1412, allocations: 4 kB / 0.6527 GB, free: 36 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.236e-05/0.1412, allocations: 11.44 kB / 0.6527 GB, free: 24 kB / 446.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1412, allocations: 3.938 kB / 0.6527 GB, free: 20 kB / 446.1 MB Notification: Performance of Templates: time 0.001915/0.1431, allocations: 208 kB / 0.6529 GB, free: 15.82 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) Environment - environmentSimulation: