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.005456/0.005456, allocations: 102.2 kB / 15.73 MB, free: 6.449 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.001273/0.001273, allocations: 199.1 kB / 16.68 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002067/0.002067, allocations: 274.9 kB / 290.8 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9487/0.9487, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 103.8 kB / 0.6815 GB, free: 15.41 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1599, allocations: 86.97 MB / 0.7664 GB, free: 8.359 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001786/0.1617, allocations: 0.6111 MB / 0.767 GB, free: 7.75 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001813/0.1635, allocations: 1.279 MB / 0.7683 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.642e-05/0.1636, allocations: 0 / 0.7683 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.935e-05/0.1636, allocations: 4 kB / 0.7683 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.615e-05/0.1637, allocations: 0 / 0.7683 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004162/0.1641, allocations: 75.67 kB / 0.7684 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.799e-05/0.1642, allocations: 23.92 kB / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.864e-05/0.1642, allocations: 0 / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.551e-05/0.1642, allocations: 19.98 kB / 0.7684 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.267e-05/0.1643, allocations: 15.92 kB / 0.7684 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.124e-05/0.1643, allocations: 0 / 0.7684 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002397/0.1646, allocations: 99.88 kB / 0.7685 GB, free: 6.219 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.51e-05/0.1646, allocations: 8 kB / 0.7685 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.654e-05/0.1646, allocations: 11.92 kB / 0.7685 GB, free: 6.199 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.1648, allocations: 79.66 kB / 0.7686 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1648, allocations: 0 / 0.7686 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.753e-06/0.1648, allocations: 0 / 0.7686 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.1648, allocations: 0 / 0.7686 GB, free: 6.121 MB / 0.5606 GB 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.0004407/0.1653, allocations: 351.3 kB / 0.7689 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.1653, allocations: 8.031 kB / 0.769 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.926e-05/0.1654, allocations: 4.938 kB / 0.769 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.1655, allocations: 168.3 kB / 0.7691 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.1655, allocations: 4.375 kB / 0.7691 GB, free: 5.512 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.601e-05/0.1655, allocations: 8.312 kB / 0.7691 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001304/0.1657, allocations: 57.98 kB / 0.7692 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.1657, allocations: 0 / 0.7692 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.1657, allocations: 0 / 0.7692 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.1657, allocations: 8 kB / 0.7692 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.757e-05/0.1658, allocations: 19.98 kB / 0.7692 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001736/0.166, allocations: 169.6 kB / 0.7694 GB, free: 5.199 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001085/0.1661, allocations: 58.5 kB / 0.7694 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.849e-05/0.1662, allocations: 32.83 kB / 0.7695 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004689/0.1666, allocations: 0.5583 MB / 0.77 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.1667, allocations: 38.5 kB / 0.77 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.363e-06/0.1667, allocations: 0 / 0.77 GB, free: 4.363 MB / 0.5606 GB 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.3463/0.513, allocations: 4.374 MB / 0.7743 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.513, allocations: 53.31 kB / 0.7744 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.821e-05/0.5131, allocations: 95.88 kB / 0.7745 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.869e-05/0.5132, allocations: 26.8 kB / 0.7745 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 1.356e-05/0.5132, allocations: 84.11 kB / 0.7746 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.5133, allocations: 58.91 kB / 0.7746 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000274/0.5136, allocations: 91.59 kB / 0.7747 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.11e-05/0.5136, allocations: 322.5 kB / 0.775 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000533/0.5142, allocations: 310.5 kB / 0.7753 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005075/0.5147, allocations: 307.9 kB / 0.7756 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.5162, allocations: 0.7763 MB / 0.7764 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.5162, allocations: 0 / 0.7764 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001561/0.5178, allocations: 0.8058 MB / 0.7771 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.5178, allocations: 9.609 kB / 0.7772 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.5178, allocations: 2.375 kB / 0.7772 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.5178, allocations: 0.7188 kB / 0.7772 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008418/0.5187, allocations: 91.62 kB / 0.7772 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.5187, allocations: 3.047 kB / 0.7773 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005133/0.5192, allocations: 5.906 kB / 0.7773 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.833e-05/0.5193, allocations: 36.34 kB / 0.7773 GB, free: 14.07 MB / 0.5606 GB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001451/0.5195, allocations: 119.4 kB / 0.7774 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.429e-05/0.5196, allocations: 9.828 kB / 0.7774 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00303/0.5226, allocations: 1.398 MB / 0.7788 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.5226, allocations: 4.984 kB / 0.7788 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.5226, allocations: 0 / 0.7788 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.5226, allocations: 7 kB / 0.7788 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002675/0.5253, allocations: 1.814 MB / 0.7806 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.5253, allocations: 3.812 kB / 0.7806 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000775/0.5261, allocations: 106.2 kB / 0.7807 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.5261, allocations: 1.375 kB / 0.7807 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.482e-05/0.5262, allocations: 34.73 kB / 0.7807 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.5262, allocations: 2.281 kB / 0.7807 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.5262, allocations: 4.906 kB / 0.7807 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/0.5285, allocations: 1.477 MB / 0.7822 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.085e-05/0.5285, allocations: 93.97 kB / 0.7822 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.946e-05/0.5286, allocations: 7.094 kB / 0.7822 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004963/0.5291, allocations: 14.75 kB / 0.7823 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.5293, allocations: 39.27 kB / 0.7823 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.084e-05/0.5294, allocations: 32.27 kB / 0.7823 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 1.954e-05/0.5294, allocations: 76.31 kB / 0.7824 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.4e-07/0.5294, allocations: 0 / 0.7824 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005549/0.5299, allocations: 177.8 kB / 0.7826 GB, free: 11.39 MB / 0.5606 GB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004343/0.5304, allocations: 235.6 kB / 0.7828 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001057/0.5314, allocations: 0.7242 MB / 0.7835 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.5315, allocations: 0 / 0.7835 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005398/0.532, allocations: 452.6 kB / 0.7839 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.5323, allocations: 19.06 kB / 0.784 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003115/0.5354, allocations: 0.8037 MB / 0.7847 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001291/0.5356, allocations: 0.7135 MB / 0.7854 GB, free: 9.723 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009557/0.5365, allocations: 295.9 kB / 0.7857 GB, free: 9.57 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005159/0.5371, allocations: 94.78 kB / 0.7858 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of SimCode: time 4.01e-07/0.5371, allocations: 0 / 0.7858 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of Templates: time 0.01937/0.5564, allocations: 11.25 MB / 0.7968 GB, free: 8.793 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (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)