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.004555/0.004555, allocations: 99.89 kB / 15.73 MB, free: 6.027 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.001065/0.001065, allocations: 187 kB / 16.67 MB, free: 5.969 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00197/0.00197, allocations: 282.5 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9342/0.9342, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001615, allocations: 95.86 kB / 0.6815 GB, free: 15.47 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.161/0.1627, allocations: 86.98 MB / 0.7664 GB, free: 8.406 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001887/0.1646, allocations: 0.6149 MB / 0.767 GB, free: 7.793 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001698/0.1663, allocations: 1.271 MB / 0.7683 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.765e-05/0.1664, allocations: 0 / 0.7683 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.699e-05/0.1664, allocations: 3.938 kB / 0.7683 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.31e-05/0.1664, allocations: 0 / 0.7683 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004417/0.1669, allocations: 83.72 kB / 0.7684 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.744e-05/0.167, allocations: 23.92 kB / 0.7684 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.556e-05/0.167, allocations: 0 / 0.7684 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.295e-05/0.1671, allocations: 7.984 kB / 0.7684 GB, free: 6.387 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.674e-05/0.1671, allocations: 23.91 kB / 0.7684 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.237e-05/0.1672, allocations: 0 / 0.7684 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002362/0.1674, allocations: 95.84 kB / 0.7685 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.921e-05/0.1674, allocations: 11.98 kB / 0.7685 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.924e-05/0.1675, allocations: 11.92 kB / 0.7685 GB, free: 6.246 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001658/0.1676, allocations: 67.86 kB / 0.7686 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.1676, allocations: 4 kB / 0.7686 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.392e-06/0.1677, allocations: 0 / 0.7686 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.414e-06/0.1677, allocations: 4 kB / 0.7686 GB, free: 6.172 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.000452/0.1681, allocations: 351.4 kB / 0.7689 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.1682, allocations: 8.031 kB / 0.7689 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.651e-05/0.1682, allocations: 0.9375 kB / 0.7689 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.1683, allocations: 168.4 kB / 0.7691 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.1684, allocations: 4.359 kB / 0.7691 GB, free: 5.566 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.83e-05/0.1684, allocations: 12.31 kB / 0.7691 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001264/0.1685, allocations: 57.98 kB / 0.7692 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.1685, allocations: 7.875 kB / 0.7692 GB, free: 5.484 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.1686, allocations: 0 / 0.7692 GB, free: 5.484 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.1686, allocations: 0 / 0.7692 GB, free: 5.484 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.799e-05/0.1686, allocations: 27.97 kB / 0.7692 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001811/0.1688, allocations: 169.6 kB / 0.7694 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001229/0.169, allocations: 62.56 kB / 0.7694 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.677e-05/0.169, allocations: 28.84 kB / 0.7695 GB, free: 5.141 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004853/0.1695, allocations: 0.5544 MB / 0.77 GB, free: 4.457 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.545e-05/0.1695, allocations: 38.44 kB / 0.77 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.1696, allocations: 0 / 0.77 GB, free: 4.41 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.3717/0.5412, allocations: 4.376 MB / 0.7743 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.5413, allocations: 53.66 kB / 0.7744 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.796e-05/0.5414, allocations: 92.52 kB / 0.7745 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.451e-05/0.5415, allocations: 29.8 kB / 0.7745 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 1.52e-05/0.5415, allocations: 81.17 kB / 0.7746 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.5416, allocations: 56.23 kB / 0.7746 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002942/0.5419, allocations: 90.8 kB / 0.7747 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.727e-05/0.542, allocations: 323.7 kB / 0.775 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005919/0.5426, allocations: 309.3 kB / 0.7753 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005299/0.5431, allocations: 314.3 kB / 0.7756 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/0.5446, allocations: 0.7682 MB / 0.7764 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.5447, allocations: 3.062 kB / 0.7764 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00156/0.5462, allocations: 0.801 MB / 0.7771 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.5463, allocations: 5.469 kB / 0.7771 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.5463, allocations: 5.312 kB / 0.7772 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.5463, allocations: 1.031 kB / 0.7772 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008069/0.5471, allocations: 92.7 kB / 0.7772 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.5471, allocations: 1.312 kB / 0.7772 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004891/0.5476, allocations: 10.58 kB / 0.7773 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.172e-05/0.5477, allocations: 34.5 kB / 0.7773 GB, free: 14.1 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.0001616/0.5479, allocations: 117.3 kB / 0.7774 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.598e-05/0.548, allocations: 15.91 kB / 0.7774 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00318/0.5511, allocations: 1.404 MB / 0.7788 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.5512, allocations: 4.688 kB / 0.7788 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.5512, allocations: 0.75 kB / 0.7788 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.5512, allocations: 2.109 kB / 0.7788 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002983/0.5542, allocations: 1.81 MB / 0.7806 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.5542, allocations: 0.9062 kB / 0.7806 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007526/0.555, allocations: 105.3 kB / 0.7807 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.251e-06/0.555, allocations: 2.875 kB / 0.7807 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.2e-05/0.5551, allocations: 29.97 kB / 0.7807 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.5551, allocations: 3.266 kB / 0.7807 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.5551, allocations: 3.281 kB / 0.7807 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002294/0.5574, allocations: 1.474 MB / 0.7821 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.411e-05/0.5574, allocations: 93.7 kB / 0.7822 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.311e-05/0.5575, allocations: 9.469 kB / 0.7822 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004742/0.558, allocations: 13.69 kB / 0.7822 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.5582, allocations: 42.03 kB / 0.7823 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.081e-05/0.5582, allocations: 29.34 kB / 0.7823 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.344e-05/0.5583, allocations: 81.42 kB / 0.7824 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5583, allocations: 0 / 0.7824 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005967/0.5589, allocations: 176.3 kB / 0.7826 GB, free: 11.42 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.0004698/0.5594, allocations: 225.7 kB / 0.7828 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001075/0.5604, allocations: 0.7263 MB / 0.7835 GB, free: 11.02 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5604, allocations: 0 / 0.7835 GB, free: 11.02 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005428/0.561, allocations: 452.2 kB / 0.7839 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003184/0.5613, allocations: 24.84 kB / 0.7839 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/0.5645, allocations: 0.8042 MB / 0.7847 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001693/0.5647, allocations: 0.7155 MB / 0.7854 GB, free: 9.758 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009132/0.5656, allocations: 296.3 kB / 0.7857 GB, free: 9.602 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005143/0.5661, allocations: 91.2 kB / 0.7858 GB, free: 9.594 MB / 0.5606 GB Notification: Performance of SimCode: time 6.72e-07/0.5661, allocations: 3.938 kB / 0.7858 GB, free: 9.59 MB / 0.5606 GB Notification: Performance of Templates: time 0.02138/0.5875, allocations: 11.54 MB / 0.7971 GB, free: 8.625 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)