Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.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.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008528/0.0008529, allocations: 99.86 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.0008861/0.0008861, 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.21/1.21, 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.001673/0.001673, allocations: 278.6 kB / 291.3 MB, free: 1.992 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.7645/0.7645, allocations: 144.6 MB / 487 MB, free: 7.207 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003814/0.0003815, allocations: 17.31 kB / 0.5683 GB, free: 38.39 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.142, allocations: 83.08 MB / 0.6494 GB, free: 3.617 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0007543/0.1428, allocations: 334.6 kB / 0.6498 GB, free: 3.293 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.1442, allocations: 1.22 MB / 0.651 GB, free: 2.059 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.842e-05/0.1442, allocations: 0 / 0.651 GB, free: 2.059 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.176e-05/0.1442, allocations: 5.75 kB / 0.651 GB, free: 2.055 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 1.973e-05/0.1443, allocations: 0 / 0.651 GB, free: 2.055 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000255/0.1445, allocations: 55.8 kB / 0.651 GB, free: 2 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.928e-05/0.1446, allocations: 15.98 kB / 0.651 GB, free: 1.984 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.886e-05/0.1446, allocations: 2.594 kB / 0.651 GB, free: 1.984 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.166e-05/0.1447, allocations: 11.98 kB / 0.651 GB, free: 1.973 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.949e-05/0.1447, allocations: 15.92 kB / 0.6511 GB, free: 1.957 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.052e-05/0.1447, allocations: 0 / 0.6511 GB, free: 1.957 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001778/0.1449, allocations: 91.89 kB / 0.6511 GB, free: 1.867 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.277e-05/0.1449, allocations: 15.92 kB / 0.6512 GB, free: 1.852 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.571e-05/0.145, allocations: 30.14 kB / 0.6512 GB, free: 1.816 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 8.997e-05/0.1451, allocations: 43.94 kB / 0.6512 GB, free: 1.773 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1451, allocations: 0.6562 kB / 0.6512 GB, free: 1.773 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1451, allocations: 0.5312 kB / 0.6512 GB, free: 1.773 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.566e-06/0.1451, allocations: 0 / 0.6512 GB, free: 1.773 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004495/0.1456, allocations: 346 kB / 0.6516 GB, free: 1.391 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.1456, allocations: 8.031 kB / 0.6516 GB, free: 1.383 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.054e-05/0.1456, allocations: 4 kB / 0.6516 GB, free: 1.379 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001356/0.1458, allocations: 163.4 kB / 0.6517 GB, free: 1.18 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.1458, allocations: 4.703 kB / 0.6517 GB, free: 1.176 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.1458, allocations: 4 kB / 0.6517 GB, free: 1.172 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.1459, allocations: 55.17 kB / 0.6518 GB, free: 1.113 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.1459, allocations: 3.938 kB / 0.6518 GB, free: 1.109 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.146, allocations: 0 / 0.6518 GB, free: 1.109 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.146, allocations: 3.938 kB / 0.6518 GB, free: 1.105 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.881e-05/0.146, allocations: 24.64 kB / 0.6518 GB, free: 1.082 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001661/0.1462, allocations: 174.2 kB / 0.652 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001076/0.1463, allocations: 60.17 kB / 0.652 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004365/0.1468, allocations: 0.5638 MB / 0.6526 GB, free: 108 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.1468, allocations: 35.28 kB / 0.6526 GB, free: 64 kB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.1468, allocations: 3.938 kB / 0.6526 GB, free: 60 kB / 446.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 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.01738/0.1642, allocations: 4.279 MB / 0.6568 GB, free: 11.66 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.1643, allocations: 51.41 kB / 0.6569 GB, free: 11.59 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.049e-05/0.1643, allocations: 93.86 kB / 0.6569 GB, free: 11.49 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.762e-05/0.1644, allocations: 29.7 kB / 0.657 GB, free: 11.46 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.615e-05/0.1644, allocations: 84.12 kB / 0.6571 GB, free: 11.37 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.765e-05/0.1645, allocations: 59.11 kB / 0.6571 GB, free: 11.31 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.438e-05/0.1646, allocations: 8.125 kB / 0.6571 GB, free: 11.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1647, allocations: 322.8 kB / 0.6574 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004532/0.1652, allocations: 311.9 kB / 0.6577 GB, free: 10.68 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004451/0.1656, allocations: 309.8 kB / 0.658 GB, free: 10.38 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006853/0.1663, allocations: 387.9 kB / 0.6584 GB, free: 9.996 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.1663, allocations: 0 / 0.6584 GB, free: 9.996 MB / 462.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001362/0.1677, allocations: 0.7995 MB / 0.6592 GB, free: 9.191 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.1677, allocations: 4 kB / 0.6592 GB, free: 9.188 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1677, allocations: 0 / 0.6592 GB, free: 9.188 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.1677, allocations: 3.984 kB / 0.6592 GB, free: 9.184 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007561/0.1685, allocations: 103.9 kB / 0.6593 GB, free: 9.082 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.1685, allocations: 0 / 0.6593 GB, free: 9.082 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000486/0.169, allocations: 8 kB / 0.6593 GB, free: 9.074 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.29e-05/0.1691, allocations: 31.98 kB / 0.6593 GB, free: 9.043 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 (18): * Single equations (assignments): 18 * 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.0001819/0.1693, allocations: 121.7 kB / 0.6594 GB, free: 8.914 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.51e-05/0.1693, allocations: 4 kB / 0.6594 GB, free: 8.91 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002971/0.1723, allocations: 1.407 MB / 0.6608 GB, free: 7.496 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1723, allocations: 4 kB / 0.6608 GB, free: 7.492 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1724, allocations: 4 kB / 0.6608 GB, free: 7.488 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.1724, allocations: 0 / 0.6608 GB, free: 7.488 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002563/0.1749, allocations: 1.806 MB / 0.6626 GB, free: 5.621 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1749, allocations: 0 / 0.6626 GB, free: 5.621 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007238/0.1757, allocations: 107.9 kB / 0.6627 GB, free: 5.516 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.1757, allocations: 8 kB / 0.6627 GB, free: 5.508 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-05/0.1758, allocations: 28 kB / 0.6627 GB, free: 5.48 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.1758, allocations: 8 kB / 0.6627 GB, free: 5.473 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1758, allocations: 7.891 kB / 0.6627 GB, free: 5.465 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002098/0.1779, allocations: 1.474 MB / 0.6642 GB, free: 3.965 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.191e-05/0.1779, allocations: 93.05 kB / 0.6643 GB, free: 3.855 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.9e-05/0.178, allocations: 12 kB / 0.6643 GB, free: 3.844 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004876/0.1785, allocations: 15.95 kB / 0.6643 GB, free: 3.828 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.1786, allocations: 43.91 kB / 0.6643 GB, free: 3.785 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.679e-05/0.1787, allocations: 31.98 kB / 0.6644 GB, free: 3.754 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.035e-05/0.1788, allocations: 75.28 kB / 0.6644 GB, free: 3.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1788, allocations: 0 / 0.6644 GB, free: 3.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0005326/0.1793, allocations: 180 kB / 0.6646 GB, free: 3.504 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (40): * Single equations (assignments): 40 * 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.0004507/0.1798, allocations: 227.2 kB / 0.6648 GB, free: 3.273 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.1808, allocations: 0.7184 MB / 0.6655 GB, free: 2.555 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1808, allocations: 0 / 0.6655 GB, free: 2.555 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005824/0.1814, allocations: 451.8 kB / 0.666 GB, free: 2.113 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001782/0.1816, allocations: 12.94 kB / 0.666 GB, free: 2.102 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003095/0.1847, allocations: 0.8512 MB / 0.6668 GB, free: 1.215 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.185, allocations: 0.7184 MB / 0.6675 GB, free: 484 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001338/0.1863, allocations: 293.5 kB / 0.6678 GB, free: 188 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004885/0.1868, allocations: 95.41 kB / 0.6679 GB, free: 96 kB / 462.1 MB Notification: Performance of SimCode: time 4.2e-07/0.1868, allocations: 0 / 0.6679 GB, free: 96 kB / 462.1 MB Notification: Performance of Templates: time 0.01422/0.201, allocations: 10.4 MB / 0.678 GB, free: 5.781 MB / 478.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) Environment - environmentSimulation: