Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008883/0.0008883, allocations: 99.23 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.0009489/0.0009488, 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.236/1.236, allocations: 223.2 MB / 239.9 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001671/0.001671, allocations: 271.2 kB / 291.2 MB, free: 1.871 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.7653/0.7653, allocations: 144.6 MB / 487 MB, free: 7.191 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004659/0.000466, allocations: 15.38 kB / 0.5683 GB, free: 38.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.134, allocations: 83.08 MB / 0.6494 GB, free: 3.582 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.0008913/0.135, allocations: 0.4916 MB / 0.6499 GB, free: 3.094 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.1367, allocations: 1.402 MB / 0.6513 GB, free: 1.676 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.272e-05/0.1367, allocations: 0 / 0.6513 GB, free: 1.676 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.557e-05/0.1367, allocations: 7.938 kB / 0.6513 GB, free: 1.668 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.734e-05/0.1368, allocations: 0.8125 kB / 0.6513 GB, free: 1.668 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004288/0.1372, allocations: 106 kB / 0.6514 GB, free: 1.566 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.105e-05/0.1373, allocations: 37.98 kB / 0.6514 GB, free: 1.531 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.806e-05/0.1373, allocations: 0 / 0.6514 GB, free: 1.531 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.547e-05/0.1374, allocations: 23.92 kB / 0.6515 GB, free: 1.508 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.832e-05/0.1375, allocations: 35.89 kB / 0.6515 GB, free: 1.473 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.487e-05/0.1375, allocations: 4 kB / 0.6515 GB, free: 1.469 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000445/0.138, allocations: 316 kB / 0.6518 GB, free: 1.16 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.171e-05/0.138, allocations: 11.92 kB / 0.6518 GB, free: 1.148 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.715e-05/0.138, allocations: 30.33 kB / 0.6518 GB, free: 1.113 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002322/0.1383, allocations: 155.8 kB / 0.652 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.1383, allocations: 0.5312 kB / 0.652 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.041e-06/0.1383, allocations: 1.5 kB / 0.652 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.1383, allocations: 0 / 0.652 GB, free: 0.9609 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005639/0.1389, allocations: 388.7 kB / 0.6524 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.1389, allocations: 12.78 kB / 0.6524 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004453/0.1393, allocations: 85.53 kB / 0.6525 GB, free: 456 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.1395, allocations: 167 kB / 0.6526 GB, free: 248 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/0.1395, allocations: 12.61 kB / 0.6526 GB, free: 236 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.765e-05/0.1395, allocations: 8.531 kB / 0.6526 GB, free: 228 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003676/0.1399, allocations: 121.4 kB / 0.6527 GB, free: 104 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.1399, allocations: 0 / 0.6527 GB, free: 104 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.14, allocations: 3.984 kB / 0.6527 GB, free: 100 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.14, allocations: 4.641 kB / 0.6528 GB, free: 96 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004943/0.1405, allocations: 123.6 kB / 0.6529 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000569/0.141, allocations: 343.2 kB / 0.6532 GB, free: 15.6 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006438/0.1417, allocations: 180.1 kB / 0.6534 GB, free: 15.42 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.409e-05/0.1417, allocations: 7.875 kB / 0.6534 GB, free: 15.41 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.1418, allocations: 38.55 kB / 0.6534 GB, free: 15.37 MB / 462.1 MB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.1418, allocations: 1.094 kB / 0.6534 GB, free: 15.37 MB / 462.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=11): time 0.01719/0.159, allocations: 3.185 MB / 0.6565 GB, free: 12.09 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.159, allocations: 55.41 kB / 0.6566 GB, free: 12.02 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.805e-05/0.1591, allocations: 101.8 kB / 0.6567 GB, free: 11.91 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.806e-05/0.1592, allocations: 25.7 kB / 0.6567 GB, free: 11.88 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.309e-05/0.1592, allocations: 92.14 kB / 0.6568 GB, free: 11.79 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.412e-05/0.1593, allocations: 43.3 kB / 0.6568 GB, free: 11.74 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-05/0.1593, allocations: 0 / 0.6568 GB, free: 11.74 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.865e-05/0.1594, allocations: 318.8 kB / 0.6571 GB, free: 11.42 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006489/0.1601, allocations: 215.8 kB / 0.6573 GB, free: 11.21 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006438/0.1607, allocations: 223.9 kB / 0.6576 GB, free: 10.99 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006645/0.1614, allocations: 215.2 kB / 0.6578 GB, free: 10.79 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1614, allocations: 3.938 kB / 0.6578 GB, free: 10.78 MB / 462.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001455/0.1629, allocations: 0.5167 MB / 0.6583 GB, free: 10.26 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.1629, allocations: 4 kB / 0.6583 GB, free: 10.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.1629, allocations: 4 kB / 0.6583 GB, free: 10.25 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.1629, allocations: 4 kB / 0.6583 GB, free: 10.25 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007562/0.1637, allocations: 119.8 kB / 0.6584 GB, free: 10.13 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.1637, allocations: 3.953 kB / 0.6584 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000561/0.1643, allocations: 55.94 kB / 0.6584 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-05/0.1644, allocations: 27.92 kB / 0.6585 GB, free: 10.04 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 (13): * Single equations (assignments): 13 * 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.0001425/0.1645, allocations: 125.8 kB / 0.6586 GB, free: 9.91 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.003e-05/0.1646, allocations: 3.906 kB / 0.6586 GB, free: 9.906 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.99e-05/0.1646, allocations: 11.97 kB / 0.6586 GB, free: 9.895 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1646, allocations: 0 / 0.6586 GB, free: 9.895 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/0.1647, allocations: 3.984 kB / 0.6586 GB, free: 9.891 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1647, allocations: 3.953 kB / 0.6586 GB, free: 9.887 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/0.1668, allocations: 1.098 MB / 0.6597 GB, free: 8.676 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.1668, allocations: 96 / 0.6597 GB, free: 8.676 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007454/0.1676, allocations: 123.7 kB / 0.6598 GB, free: 8.555 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.1676, allocations: 3.953 kB / 0.6598 GB, free: 8.551 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.068e-05/0.1676, allocations: 27.92 kB / 0.6598 GB, free: 8.523 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.1676, allocations: 4 kB / 0.6598 GB, free: 8.52 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.1676, allocations: 4 kB / 0.6598 GB, free: 8.516 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002321/0.17, allocations: 0.8582 MB / 0.6607 GB, free: 7.641 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/0.1701, allocations: 117 kB / 0.6608 GB, free: 7.508 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.937e-05/0.1702, allocations: 3.953 kB / 0.6608 GB, free: 7.504 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006276/0.1708, allocations: 63.94 kB / 0.6609 GB, free: 7.441 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.514e-05/0.1709, allocations: 31.86 kB / 0.6609 GB, free: 7.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.398e-05/0.171, allocations: 28.11 kB / 0.6609 GB, free: 7.383 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.444e-05/0.171, allocations: 83.27 kB / 0.661 GB, free: 7.301 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.171, allocations: 0 / 0.661 GB, free: 7.301 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003705/0.1714, allocations: 56 kB / 0.6611 GB, free: 7.246 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * 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 (11): * Single equations (assignments): 11 * 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.0001971/0.1716, allocations: 117.1 kB / 0.6612 GB, free: 7.125 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001373/0.173, allocations: 471.5 kB / 0.6616 GB, free: 6.664 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.173, allocations: 4 kB / 0.6616 GB, free: 6.66 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006763/0.1737, allocations: 247.7 kB / 0.6619 GB, free: 6.418 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.1739, allocations: 9.875 kB / 0.6619 GB, free: 6.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003962/0.1779, allocations: 0.8656 MB / 0.6627 GB, free: 5.508 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002739/0.1782, allocations: 0.6926 MB / 0.6634 GB, free: 4.789 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006127/0.1788, allocations: 96.59 kB / 0.6635 GB, free: 4.695 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000227/0.179, allocations: 55.3 kB / 0.6635 GB, free: 4.641 MB / 462.1 MB Notification: Performance of SimCode: time 6.11e-07/0.179, allocations: 0 / 0.6635 GB, free: 4.641 MB / 462.1 MB Notification: Performance of Templates: time 0.00595/0.185, allocations: 3.25 MB / 0.6667 GB, free: 1.398 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) Environment - environmentSimulation: