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.001263/0.001263, allocations: 116.5 kB / 16.37 MB, free: 6.016 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.001428/0.001428, allocations: 192.6 kB / 17.3 MB, free: 5.613 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.279/1.279, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002897/0.002897, allocations: 281.6 kB / 291.4 MB, free: 14.51 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.897/0.897, allocations: 169.3 MB / 0.4989 GB, free: 4.492 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 89.98 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1518, allocations: 86.97 MB / 0.6816 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00172/0.1536, allocations: 0.6032 MB / 0.6822 GB, free: 6.848 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001551/0.1551, allocations: 1.287 MB / 0.6835 GB, free: 5.543 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.283e-05/0.1552, allocations: 0 / 0.6835 GB, free: 5.543 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.282e-05/0.1552, allocations: 0 / 0.6835 GB, free: 5.543 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.219e-05/0.1553, allocations: 0 / 0.6835 GB, free: 5.543 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003827/0.1556, allocations: 83.66 kB / 0.6836 GB, free: 5.461 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.513e-05/0.1557, allocations: 23.98 kB / 0.6836 GB, free: 5.438 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.664e-05/0.1558, allocations: 0 / 0.6836 GB, free: 5.438 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.059e-05/0.1558, allocations: 11.94 kB / 0.6836 GB, free: 5.426 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.677e-05/0.1558, allocations: 15.97 kB / 0.6836 GB, free: 5.41 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.039e-05/0.1559, allocations: 0 / 0.6836 GB, free: 5.41 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001979/0.1561, allocations: 95.89 kB / 0.6837 GB, free: 5.316 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.815e-05/0.1561, allocations: 15.92 kB / 0.6837 GB, free: 5.301 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.129e-05/0.1561, allocations: 15.92 kB / 0.6837 GB, free: 5.285 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001357/0.1563, allocations: 67.8 kB / 0.6838 GB, free: 5.219 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1563, allocations: 4 kB / 0.6838 GB, free: 5.215 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1563, allocations: 0 / 0.6838 GB, free: 5.215 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.1563, allocations: 0 / 0.6838 GB, free: 5.215 MB / 494.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.0004025/0.1567, allocations: 347.5 kB / 0.6841 GB, free: 4.828 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.1568, allocations: 8.031 kB / 0.6841 GB, free: 4.82 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.602e-05/0.1568, allocations: 8.844 kB / 0.6841 GB, free: 4.812 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.1569, allocations: 168.3 kB / 0.6843 GB, free: 4.609 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.1569, allocations: 8.359 kB / 0.6843 GB, free: 4.602 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.285e-05/0.1569, allocations: 4.375 kB / 0.6843 GB, free: 4.598 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.1571, allocations: 61.97 kB / 0.6844 GB, free: 4.531 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.1571, allocations: 0 / 0.6844 GB, free: 4.531 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.1571, allocations: 0 / 0.6844 GB, free: 4.531 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.1571, allocations: 4 kB / 0.6844 GB, free: 4.527 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.13e-05/0.1572, allocations: 19.98 kB / 0.6844 GB, free: 4.508 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001607/0.1573, allocations: 169.7 kB / 0.6846 GB, free: 4.293 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.1574, allocations: 62.5 kB / 0.6846 GB, free: 4.223 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.041e-05/0.1575, allocations: 28.84 kB / 0.6846 GB, free: 4.191 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004383/0.1579, allocations: 0.5544 MB / 0.6852 GB, free: 3.508 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.158, allocations: 34.5 kB / 0.6852 GB, free: 3.465 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.158, allocations: 4 kB / 0.6852 GB, free: 3.461 MB / 494.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.2705/0.4285, allocations: 4.371 MB / 0.6895 GB, free: 17.98 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.611e-05/0.4285, allocations: 53.56 kB / 0.6895 GB, free: 17.91 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.013e-05/0.4286, allocations: 92.36 kB / 0.6896 GB, free: 17.82 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.072e-05/0.4287, allocations: 33.52 kB / 0.6897 GB, free: 17.79 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.694e-05/0.4287, allocations: 80.98 kB / 0.6897 GB, free: 17.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.657e-05/0.4288, allocations: 56.69 kB / 0.6898 GB, free: 17.68 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002468/0.429, allocations: 89.25 kB / 0.6899 GB, free: 17.67 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.189e-05/0.4291, allocations: 321 kB / 0.6902 GB, free: 17.36 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004794/0.4296, allocations: 308.7 kB / 0.6905 GB, free: 17.31 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004734/0.43, allocations: 313.7 kB / 0.6908 GB, free: 17.18 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.4314, allocations: 0.771 MB / 0.6915 GB, free: 16.84 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.4314, allocations: 1.344 kB / 0.6915 GB, free: 16.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001423/0.4329, allocations: 0.7987 MB / 0.6923 GB, free: 16.52 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.4329, allocations: 6.484 kB / 0.6923 GB, free: 16.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.4329, allocations: 4.406 kB / 0.6923 GB, free: 16.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.4329, allocations: 1.719 kB / 0.6923 GB, free: 16.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007637/0.4337, allocations: 95 kB / 0.6924 GB, free: 16.51 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.4337, allocations: 2.391 kB / 0.6924 GB, free: 16.51 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004512/0.4342, allocations: 8 kB / 0.6924 GB, free: 16.51 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.9e-05/0.4342, allocations: 36.91 kB / 0.6925 GB, free: 16.51 MB / 494.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001576/0.4344, allocations: 121.9 kB / 0.6926 GB, free: 16.39 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.132e-05/0.4345, allocations: 11.67 kB / 0.6926 GB, free: 16.38 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002798/0.4373, allocations: 1.395 MB / 0.6939 GB, free: 15.83 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.4373, allocations: 4.156 kB / 0.694 GB, free: 15.83 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.4373, allocations: 0.9688 kB / 0.694 GB, free: 15.83 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.4373, allocations: 10.28 kB / 0.694 GB, free: 15.82 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002581/0.4399, allocations: 1.813 MB / 0.6957 GB, free: 14.81 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.4399, allocations: 0.8438 kB / 0.6957 GB, free: 14.81 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007203/0.4407, allocations: 109.9 kB / 0.6958 GB, free: 14.81 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.4407, allocations: 1.781 kB / 0.6958 GB, free: 14.81 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.431e-05/0.4408, allocations: 27.75 kB / 0.6959 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.4408, allocations: 2.031 kB / 0.6959 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4408, allocations: 0.9062 kB / 0.6959 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002106/0.4429, allocations: 1.473 MB / 0.6973 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.341e-05/0.4429, allocations: 94.22 kB / 0.6974 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.307e-05/0.443, allocations: 7.734 kB / 0.6974 GB, free: 13.94 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000446/0.4435, allocations: 9.812 kB / 0.6974 GB, free: 13.94 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.4436, allocations: 43.77 kB / 0.6975 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-05/0.4437, allocations: 32.11 kB / 0.6975 GB, free: 13.93 MB / 494.1 MB Notification: Performance of sorting global known variables: time 1.697e-05/0.4437, allocations: 77.55 kB / 0.6976 GB, free: 13.86 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4437, allocations: 0 / 0.6976 GB, free: 13.86 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000534/0.4442, allocations: 176.8 kB / 0.6977 GB, free: 13.85 MB / 494.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 (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.0004259/0.4447, allocations: 232 kB / 0.6979 GB, free: 13.73 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00111/0.4458, allocations: 0.7224 MB / 0.6987 GB, free: 13.44 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4458, allocations: 4.125 kB / 0.6987 GB, free: 13.44 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005949/0.4464, allocations: 454 kB / 0.6991 GB, free: 13.24 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.4467, allocations: 17.8 kB / 0.6991 GB, free: 13.23 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002957/0.4497, allocations: 0.8135 MB / 0.6999 GB, free: 12.86 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001376/0.4498, allocations: 0.7148 MB / 0.7006 GB, free: 12.16 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0009524/0.4508, allocations: 297.9 kB / 0.7009 GB, free: 12.01 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005312/0.4513, allocations: 94.7 kB / 0.701 GB, free: 12 MB / 494.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4513, allocations: 0 / 0.701 GB, free: 12 MB / 494.1 MB Notification: Performance of Templates: time 0.01658/0.4679, allocations: 11.24 MB / 0.7119 GB, free: 9.898 MB / 494.1 MB 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)